![]() |
Quote:
For debugging, that's a crucial part man x.x I'd suggest trying with (npc[client.id]) sendtonc accessing the monster!: And if you do the this.npctype I said also send that, perhaps your'e not on the right NPC (as I said prior). What server is this on and I might swing by? |
Clientside ID of a NPC does not always equal the serverside ID of a NPC.
Also why not just trigger the npc directly from clientside? |
Dont you need callnpc servewrside if dealing with a serverside npc?
|
Found the problem, cant fix it:
NPC Code: That part, where it sends the command to the npc, which should recieve it with: NPC Code: But it doesnt make any acknowledgement that it was told to move. |
> Clientside ID of a NPC does not always equal the serverside ID of a NPC.
> Also why not just trigger the npc directly from clientside? |
Is there any way to convert a clientside id to a serverside one?
|
Quote:
1. You trigger on the position of the npc you want to move, then the npc directly gets the trigger and you don't need to code anything complicated (triggeraction monsterx,monstery,test,...; -> if (actiontest) ...) 2. You send the ID of the npc (not the index), and on the serverside you are searching for the npc with the right id - this works because the ID is actually the same, except when the npc is not existing on the serverside, e.g. if it only has clientside script for (i=0; i<npcscount; i++) if (npcs[i].id==monsterid) callnpc i,test,...; |
I'll try the second one.
EDIT: It works, thank you so much! And also thanks PS for giving me tha targeting system when you came on last night. |
All times are GMT +2. The time now is 08:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.