MukkiesftKies Posted September 22, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 123 Reputation: 7 Joined: 03/13/12 Last Seen: January 2, 2019 Share 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 Link to comment Share on other sites More sharing options...
GmOcean Posted September 22, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share 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 Link to comment Share on other sites More sharing options...
MukkiesftKies Posted September 23, 2013 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 123 Reputation: 7 Joined: 03/13/12 Last Seen: January 2, 2019 Author Share 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 Link to comment Share on other sites More sharing options...
GmOcean Posted September 24, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted September 24, 2013 Don't quite understand what you meant... but this script doesn't use OnPCLoadMapEvent. It uses, OnPCLoginEvent. Quote Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.