Jump to content
  • 0

Additional features for Freebies NPC


Noire

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  103
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

Hello guys, i would like to scream for your help again im planning to add some features in the script.  After giving out the freebies the npc will ask again of what class would you like to change ( ALL list of Transcend Class ) then after changing into to your class you will also gain  base level of 150 and a job level of 120.  ( i still want the freebies to be account bound !! ) thank youu!!
 

prontera,149,158,4    script    Noire   917,{
    setarray .Items[0], 2410,1,0,2629,2,0,2630,2,0,2357,2,0,2524,2,0,2115,2,0,7608,10,0; // <item id>,<amount>,<refine>
    set .size, getarraysize(.Items);
    @Level = 200;
    @npc$ = "[ Exia ]";
    if(BaseLevel >= @Level) { 
    if ( #Freebies ) {
    mes @npc$;
    mes "You already have your freebies";
    close;
    }
    mes @npc$;
    mes "Here is your freebies!";
    next;
    if ( (MaxWeight/2) <= Weight ) end;
    for ( set .@i, 0; .@i < .size; set .@i, .@i + 3 ) 
        getitembound2 .Items[.@i],.Items[.@i+1],1,.Items[.@i+2],0,0,0,0,0,1;
    set #Freebies, 1;
    mes @npc$;
    mes "Done!";
    close;
    }

    else {
    mes @npc$;
    mes "Hi, I can give you free items once you meet my requirement. ";
    next;
    mes @npc$;
    mes "You need to get a base level of 200.";
    next;
    mes @npc$;
    mes "Come back if you're already stronger.";
    close;
    }

OnInit:

waitingroom "Freebies",0;
end;

}

 

Edited by Emistry
codebox
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   1
  • Joined:  02/10/12
  • Last Seen:  

you can look toward this link

Edited by blakbord
added link
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...