Jump to content
  • 0

how to modify this freebies npc?


Hatake Kakashi

Question


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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 by Hatake Kakashi
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  


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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

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 by Hatake Kakashi
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Move to script support

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  


mes "Blablabalaaalaa";

mes "Blablabalaaalaa";

switch( select(...............

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  254
  • Topics Per Day:  0.06
  • Content Count:  825
  • Reputation:   3
  • Joined:  11/14/11
  • Last Seen:  

i can't understand.. please post fixed one. thanks..



ow i get it,. so why i can't move when im done choosing freebies?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

You can't move maybe because of http://rathena.org/board/topic/81860-r17280-slight-script-engine-update/

 

  1. add a message before the select
  2. or remove close2

to prevent ofr being stuck

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...