Thread: mouse coords
View Single Post
  #9  
Old 02-08-2005, 10:25 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
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.
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!

Last edited by falco10291029; 02-09-2005 at 01:03 AM..
Reply With Quote