Thread: Finding Params
View Single Post
  #2  
Old 05-28-2014, 12:15 AM
Jakov_the_Jakovasaur Jakov_the_Jakovasaur is offline
Deleted by Darlene159
Jakov_the_Jakovasaur's Avatar
Join Date: Sep 2013
Location: Deleted by Darlene159
Posts: 360
Jakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud ofJakov_the_Jakovasaur has much to be proud of
hello!

in the provided example you are checking to see if the first parameter is "place" yet the one parameter which is defined is "dmg", in that case i dont see how an npc should be placed to begin with. i can only assume this is a mistake with the example

the reason the npcs chat would be "0" though is because there simply are no parameters within the onCreated event on the npc object itself

you can actually write the npcs chat at the same time you create it like so:

PHP Code:
temp.npc this.level.putNPC2(player.xplayer.y+1""/*params[1]*/); //3rd parameter here is supposed to be the npcs script, but you are joining a class externally anyway
temp.npc.chat params[1]; 
also just a note that although it might work through some quirk, it doesnt really make sense to be using 'this.level' serverside within a weapon object, it makes more sense to use 'player.level'
__________________
This signature has been deleted by Darlene159.
Reply With Quote