Hatake Kakashi Posted September 7, 2013 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Share Posted September 7, 2013 (edited) how to fix this? i need this automatically when newbie login,. this npc will has a message to a newbie. hello, and welcome to this server please choose your freebies Lord Kahos Horn + +10 VSET Baphomet Horns + +10 VSET Solar God Helm + +10 VSET dont forget to invite your friends to play here. thank you and enjoy playing. that's all i want sir.. thank you TIA. - script Freebies -1,{ OnPCLoginEvent: // 1st: Announce login if(getgmlevel() > 20) end; Announce(StrCharInfo(0) + " has logged in.", bc_all); // 2nd: Check freebies if(!#FREEBIES) { getitem 5022,1; <<<< Solar God Helm getitem2 2137,1,1,10,0,0,0,0,0; getitem2 2357,1,1,10,0,0,0,0,0; getitem2 2421,1,1,10,0,0,0,0,0; getitem2 2524,1,1,10,0,0,0,0,0; getitem 5374,1; <<<< Bapho Horns getitem2 2137,1,1,10,0,0,0,0,0; getitem2 2357,1,1,10,0,0,0,0,0; getitem2 2421,1,1,10,0,0,0,0,0; getitem2 2524,1,1,10,0,0,0,0,0; getitem 5013,1; <<<< Lord Kaho getitem2 2137,1,1,10,0,0,0,0,0; getitem2 2357,1,1,10,0,0,0,0,0; getitem2 2421,1,1,10,0,0,0,0,0; getitem2 2524,1,1,10,0,0,0,0,0; Set(#FREEBIES, 1); } // Event ends End(); } help help help.... thank you. Edited September 7, 2013 by Hatake Kakashi Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 7, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 10 hours ago Share Posted September 7, 2013 switch( select( "Solar God Helm","Bapho Horns","Lord Kaho" ) ){ Case 1: getitem 5022,1; getitem2 2137,1,1,10,0,0,0,0,0; getitem2 2357,1,1,10,0,0,0,0,0; getitem2 2421,1,1,10,0,0,0,0,0; getitem2 2524,1,1,10,0,0,0,0,0; Case 2: break; getitem 5374,1; getitem2 2137,1,1,10,0,0,0,0,0; getitem2 2357,1,1,10,0,0,0,0,0; getitem2 2421,1,1,10,0,0,0,0,0; getitem2 2524,1,1,10,0,0,0,0,0; break; Case 3: getitem 5013,1; getitem2 2137,1,1,10,0,0,0,0,0; getitem2 2357,1,1,10,0,0,0,0,0; getitem2 2421,1,1,10,0,0,0,0,0; getitem2 2524,1,1,10,0,0,0,0,0; default: break; } close2; Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted September 8, 2013 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted September 8, 2013 (edited) fixed.. but i have a problem.. when your relogin many times, you can get those freebies ea. login.. please fix. and how to put 1st message. ex. Hello there, welcome to My Ragnarok Online,. our goal is to give you a fair and balanced server. all newbies can get freebies to choose from.... i want to put that msg. on the 1st. thank you sir emistry. here's the fix code. thanks. - script Freebies -1,{ OnPCLoginEvent: // 1st: Announce login if(getgmlevel() > 20) end; Announce(StrCharInfo(0) + " has logged in.", bc_all); // 2nd: Check freebies if(!#FREEBIES) { switch( select( "Solar God Helm","Bapho Horns","Lord Kaho" ) ){ Case 1: getitem 5022,1; getitem2 2137,1,1,10,0,0,0,0,0; getitem2 2357,1,1,10,0,0,0,0,0; getitem2 2421,1,1,10,0,0,0,0,0; getitem2 2524,1,1,10,0,0,0,0,0; break; Case 2: getitem 5374,1; getitem2 2137,1,1,10,0,0,0,0,0; getitem2 2357,1,1,10,0,0,0,0,0; getitem2 2421,1,1,10,0,0,0,0,0; getitem2 2524,1,1,10,0,0,0,0,0; break; Case 3: getitem 5013,1; getitem2 2137,1,1,10,0,0,0,0,0; getitem2 2357,1,1,10,0,0,0,0,0; getitem2 2421,1,1,10,0,0,0,0,0; getitem2 2524,1,1,10,0,0,0,0,0; default: break; } close2; Set(#FREEBIES, 1); } // Event ends End(); } sir, got a problem again, when i finish to choose i can't move... i mean the char. can't move, you can solved it when you @go 0 but those newbie does not know @go 0 please fix thanks.. Edited September 8, 2013 by Hatake Kakashi Quote Link to comment Share on other sites More sharing options...
Patskie Posted September 8, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 19 hours ago Share Posted September 8, 2013 Move to script support Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 8, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 10 hours ago Share Posted September 8, 2013 mes "Blablabalaaalaa"; mes "Blablabalaaalaa"; switch( select(............... Quote Link to comment Share on other sites More sharing options...
Hatake Kakashi Posted September 8, 2013 Group: Members Topic Count: 254 Topics Per Day: 0.05 Content Count: 825 Reputation: 3 Joined: 11/14/11 Last Seen: June 25, 2021 Author Share Posted September 8, 2013 i can't understand.. please post fixed one. thanks.. ow i get it,. so why i can't move when im done choosing freebies? Quote Link to comment Share on other sites More sharing options...
Capuche Posted September 8, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted September 8, 2013 You can't move maybe because of http://rathena.org/board/topic/81860-r17280-slight-script-engine-update/ add a message before the select or remove close2 to prevent ofr being stuck Quote Link to comment Share on other sites More sharing options...
Question
Hatake Kakashi
how to fix this?
i need this automatically when newbie login,.
this npc will has a message to a newbie.
hello, and welcome to this server
please choose your freebies
Lord Kahos Horn + +10 VSET
Baphomet Horns + +10 VSET
Solar God Helm + +10 VSET
dont forget to invite your friends to play here.
thank you and enjoy playing.
that's all i want sir.. thank you TIA.
help help help.... thank you.
Edited by Hatake KakashiLink to comment
Share on other sites
6 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.