![]() |
putnpc2 problem
PHP Code:
Any reason why this won't work? Or do I have to change the npcs array (with(npcs[npcs.size() - 1]))? Or is there any other methods? |
It would be nice to know what doesn't work.
I'm personally not a fan about double-with's... Nor am I a fan of 'temp.n' mysteriously becoming 'n'. It could be on a gmap, and showing at the top-left corner... As for the npcs array trick, that was before putnpc2 returned an object. How I usually do it is: PHP Code:
|
Quote:
And, with your example I could do PHP Code:
Edit: Doesn't work in a WNPC :( |
Quote:
|
id is a static variable in TServerPlayer and TServerNPC.
name is static in TGraalVar (everything). |
But, I still have the problem..
Inver told me to do level.putnpc2() When using that no errors occured in rc, but it wouldn't put the class in the level Problem solved: two methods works: (Thanks Inver for the level.putnpc2()) PHP Code:
PHP Code:
|
Quote:
Classes are not objects. |
Quote:
"It didn't put the npc that had the class joined to itself at the given coords" but it's fixed now :o |
Quote:
|
| All times are GMT +2. The time now is 11:50 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.