Thread: mouse coords
View Single Post
  #14  
Old 02-09-2005, 12:03 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by falco10291029
hmm, doesnt seem to be working, through debug maneuvers the problem seems to be that the monster isnt recieving the flag....

NPC Code:

if (move) {unset move;this.x=strtofloat(#p(0));this.y=strtofloat(#p (1));}


which is called from the script:
NPC Code:

if (actionserverside) {
callnpcs strtofloat(#p(0)),move,#p(2),#p(3);
}
//#CLIENTSIDE
//note this isnt the full script, I cut only the client and serverside parts that are used here.

if (mousedown&&leftmousebutton&&strlen(#s(client.id)) >0) {
setplayerprop#c, #s(client.id);
triggeraction 0,0,serverside,subclass/summon mold,#s(client.id),#v(mousex),#v(mousey),move;


};



I believe this is what you said to do, I haven't ever used callnpc before though, so i wouldn't know.
Please make an effort to make your code readable. Refer to KSI-GS, please.

Anyway, follow the debug process, dude. Figure out exactly which part of your code is not working, and then post it.
Reply With Quote