Jump to content
  • 0

Other version of freebies NPC


Dvrstle

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

This freebie NPC is account based. 1 Freebie per Account =)

Player will choose any glorious item and then they will be able to get their chosen weapon (+6 already).

This freebie NPC suits for my server that's why i need it.

Thanks!!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   1
  • Joined:  12/29/12
  • Last Seen:  

try this.. better to test before put in your server.

//getitem2 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};

-    script    Freebies    -1,{
OnPCLoginEvent:
    if(Class == 0 && BaseLevel == 1 && JobLevel == 1 && BaseExp == 0 && #freebies == 0) { // only novice baselv1 joblv1 can get this..

menu    "ITEM 1 NAME HERE", ITEM1, "ITEM 2 NAME HERE", ITEM2, "ITEM 3 NAME HERE", ITEM3, "ITEM 4 NAME HERE", ITEM4, "ITEM 5 NAME HERE", ITEM5, "ITEM 6 NAME HERE", ITEM6;

ITEM1:
   getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4;
 set #freebies,1; // set to 1 so players cant get more.
end;

ITEM2:
   getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4;
 set #freebies,1;
end;
ITEM3:
   getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4;
 set #freebies,1;
end;
ITEM4:
   getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4;
 set #freebies,1;
end;
ITEM5:
   getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4;
 set #freebies,1;
end;
ITEM6:
   getitem2 ITEM1 ID here,1,1,6,0,@card1,@card2,@card3,@card4;
 set #freebies,1;
end;
}
}

Edited by Cisqua
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  361
  • Reputation:   10
  • Joined:  12/30/11
  • Last Seen:  

ok thanks!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  02/09/13
  • Last Seen:  

Where can I put this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Where can I put this?

This wiki page explains how: Adding_a_Script

  • Upvote 1
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...