MukkiesftKies Posted September 22, 2013 Posted September 22, 2013 (edited) Hello, i would like to try use showevent using different npc but error. This npc works like this.When new player login, the emotion will show at Newbie Gift NPC. prontera,164,174,4 script Newbie Gift 115,{ if( !#Freebiess ){ set #Freebiess,1; mes "Welcome...this is your gift..."; getitem 1530,1; showevent 0,0; }else{ mes "You have claim the Reward already."; } close; OnNewbie: showevent 1,0; end; } - script loginaa -1,{ OnPCLoginEvent: donpcevent "Receptionist::OnNewbie"; end; } [Error]: script_rid2sd: fatal error ! player not attached! [Debug]: Function: showevent (2 parameters): [Debug]: Data: number value=1 [Debug]: Data: number value=0 [Debug]: Source (NPC): Receptionist at prontera (164,174) Edited September 22, 2013 by MukkiesftKies Quote
GmOcean Posted September 22, 2013 Posted September 22, 2013 Problem here is: donpcevent requires a player to be attached, while doevent does not. Additionally, your thinking too hard for this, and in a result made it over complicated. You can just combine both of those scripts.... prontera,164,174,4 script Newbie Gift 115,{ if( !#Freebiess ){ set #Freebiess,1; mes "Welcome...this is your gift..."; getitem 1530,1; showevent 0,0; }else{ mes "You have claim the Reward already."; } close; OnPCLoginEvent: if(!#Freebiess){ showevent 1,0; } end; } There, I combined them, also, I changed it to check to see if they received the Item when they login, so it only does " showevent 1,0 " when a NEW account logs in, not just anybody. 1 Quote
MukkiesftKies Posted September 23, 2013 Author Posted September 23, 2013 I use the example at rathena/eathena and combine but be like that. so OnPCLoadMapEvent: no function for showevent and without OnPCLoadMapEvent: can use for showevent ?? btw thanks, your script very simple. Quote
GmOcean Posted September 24, 2013 Posted September 24, 2013 Don't quite understand what you meant... but this script doesn't use OnPCLoadMapEvent. It uses, OnPCLoginEvent. Quote
Question
MukkiesftKies
Hello, i would like to try use showevent using different npc but error.
This npc works like this.
When new player login, the emotion will show at Newbie Gift NPC.
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.