Jump to content
  • 0

how to modify this freebies npc?


Question

Posted (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 by Hatake Kakashi

6 answers to this question

Recommended Posts

Posted


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;

Posted (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 by Hatake Kakashi

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...