NPC PROBELEMEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

07/05/2012 20:33 abdonight#1
hello guys

when i try to open the npc it give me this error

[Only registered and activated users can see links. Click Here To Register...]
07/05/2012 20:38 Musta²#2
The "NPC" is calling an "nil value( no script function!!)" !!!

RappelzProject would have understood it xDD --> Don't cry RappelzProject
07/05/2012 21:02 abdonight#3
so where i can get it ??

THX MUSTA ( shokran ya akhi )
07/05/2012 21:22 ci4lblFmPW#4
You will have to define the contact script in your lua.

Contact scripts start with a code like the following:
Code:
function npc_secroute_contact()
dlg_title("@00000000")
dlg_text("@00000001")

if get_env("game.cash_usable_server") == 0 then
		dlg_menu( "@000000002", "open_market( 'secroute_market' )" )
	else
		dlg_menu( "@000000003", "open_market( 'normal_market' )" )
	end
	dlg_menu( "@90010002", '' )
 
	dlg_show()
end
The code above is just an example on how to write a contact script.
You will have to adjust the values of the string-calls (@number).
The number following the '@' equals the code of a specific string in the dbo.StringResource.
You may also just enter a string by yourself (don't forget the quotation marks).

Modifiy the script as you want, then add the functions name ('npc_secroute_contact()')
to the field 'contact_script' of the npc in the dbo.NPCResource.

Greez,

Ciel