Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[G2O v.0.1.2][Server-Side] NPC Manager
#11
I got a little problem here ^^
The bot is connected but he isnt there and i got these errors.


Code:
[2017-11-18 04:12:10] [squirrel] Error runtime: 'default/server-scripts/packets.nut' (Ln: 8): class instances do not support the new slot operator
[2017-11-18 04:12:10] -== Stack Dump: ==-
[2017-11-18 04:12:10] 1: Function: 'synchronizateNPCOnStart' File: 'gamemodes/server-scripts/inc/npcSynchronizate.nut' Line: 7
[2017-11-18 04:12:10] 2: Function: 'onPlayerConnect' File: 'gamemodes/server-scripts/inc/npcSynchronizate.nut' Line: 59
[2017-11-18 04:12:10]
-== Local varaiable: ==-
[2017-11-18 04:12:10] + array: vargv
[2017-11-18 04:12:10] + string: funcName (addNPC)
[2017-11-18 04:12:10] + integer: pid (0)
[2017-11-18 04:12:10] + instance: this
[2017-11-18 04:12:10] + integer: pid (0)
[2017-11-18 04:12:10] + instance: this
[2017-11-18 04:12:10] + instance: k
[2017-11-18 04:12:10] + integer: v (0)
[2017-11-18 04:12:10] + integer: pid (0)
[2017-11-18 04:12:10] + table: this
[2017-11-18 04:12:28] [squirrel] Error runtime: 'default/server-scripts/packets.nut' (Ln: 8): class instances do not support the new slot operator
[2017-11-18 04:12:28] -== Stack Dump: ==-
[2017-11-18 04:12:28] 1: Function: 'synchronizateNPC' File: 'gamemodes/server-scripts/inc/npcSynchronizate.nut' Line: 42
[2017-11-18 04:12:28] 2: Function: 'unknown_function' File: 'gamemodes/server-scripts/inc/npcSynchronizate.nut' Line: 72
[2017-11-18 04:12:28]

push?Sad
Reply
#12
Swoją drogą, czy jest jakaś opcja żeby po zabiciu danego NPC postać otrzymywała określoną ilość doświadczenia, bo przeszukałem forum wzłuż i wszerz i nic,
Reply
#13
Use something like that:

Code:
local botid;

addEventHandler("onPlayerKillNPC", function(kid, bid, ai){
 if(bid == botid){
   setExp(getExp() + 50); //Or other value
 }
});
Reply
#14
Yzibz there is a problem with file packet.nut. Default its like packet <- Packet();. Change it to local packet = Packet();. delete packet; to packet = null;. packet.nut in client and server side. Tomorrow i will add some package repair some thinks and add eating.
Reply
#15
Quarchodron, can you update your script to 0.1.3 G2O Version? I have the following errors when I am trying to run this script right now:

[Image: 8GrVmAqZLDeRg.png]
[Image: pjDBIfE.gif]
Reply
#16
Functions callClientFunc and callServerFunc (which is using this script) are in default server files in folder "examples". You have to include two files called "packets.nut", one for client-side and one for server-side to your server files to eliminate this error.
Reply
#17
Matwwell i suggest to use this one : http://gothic-online.com.pl/forum/showth...p?tid=2301
or this http://gothic-online.com.pl/forum/showth...p?tid=2290
No really have time for this ;/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Server] ORM Quarchodron 3 3,444 08.07.2020, 10:19
Last Post: Quarchodron
  [0.1.3] [server] ItemGroundSpawner HammelGammel 1 4,040 05.02.2020, 18:40
Last Post: demor140202
  [New G2O][Client-Side] bindKey Patrix 6 8,970 14.11.2018, 02:32
Last Post: Patrix
  [New G2O][Shared] Command Handler Patrix 3 6,171 05.09.2018, 15:42
Last Post: Patrix
  [New G2O][Shared] packetListener Patrix 3 6,653 20.06.2018, 18:43
Last Post: Tommy
  [0.1.4.*] [client/server] Simple anty-cheat Profesores 8 10,244 20.03.2018, 19:16
Last Post: Patrix
  [0.1.3] [client/server] BotCreator HammelGammel 22 26,560 08.02.2018, 22:02
Last Post: HammelGammel
  [0.1.3] [client/server] Utility Scripts HammelGammel 1 5,253 27.01.2018, 14:03
Last Post: HammelGammel
  [New G2O][Client-Side] Key Combination Patrix 1 3,784 23.12.2017, 13:16
Last Post: Patrix
  [G2O v.0.1.0][Client-Side] Notice Board Quarchodron 0 3,140 27.06.2017, 14:28
Last Post: Quarchodron

Forum Jump:


Users browsing this thread: 2 Guest(s)