![]() |
mouse coords
NPC Code: this should transefer player mouse x and y coordinates to the npc's values thos.x and this.y right? If not what am I doing wrong? (if needbe I can post more of the script) |
Quote:
|
Well is there anyway i can access them with a serverside script without trying to somehow get the client to constantly send them as new variables?
|
Quote:
|
I did try it, of course, I read the rules. By it should i mean it doesnt but it should and by iof not what am i doign wrong i mean if im wrong assuming this should what is the proper method? But anyway, what i am trying to do is have a summoned monster move to and when close enough attack that coordinate. I couldnty use a triggeractrion or client.string since it's a putnpc2 class npc that gets summoned, so yes any help would be appreciated.
|
Quote:
NPC Code: That would be the best way to go about it in my opinion. It is best to keep as much of the monster code in the actual monster class, rather than spread it out (Makes it easier for editing and just overall purposes). If you have any other questions ask away (within reason and after evaluating what you're asking ;)) |
I will try using this method and tell you ifd it works, thanks for your help.
|
Quote:
|
hmm, doesnt seem to be working, through debug maneuvers the problem seems to be that the monster isnt recieving the flag....
NPC Code: which is called from the script: NPC Code: I believe this is what you said to do, I haven't ever used callnpc before though, so i wouldn't know. |
Quote:
|
I tried both, neihter worked.
|
Quote:
|
I already made sure that part works, don't worry about it.
|
Quote:
Anyway, follow the debug process, dude. Figure out exactly which part of your code is not working, and then post it. |
I did, the problem is that the callnpc isnt getting picked up by the monster.
|
All times are GMT +2. The time now is 09:22 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.