Jump to content
  • 0

how to put +20 refine in freebies?


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 put +20 refine in freebies?

for example when player login he/she got automatically item with +20 or +10

thank you.

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:  

change getitem to getitem2

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:  

so it would be look like this?

GetItem2(2375, 1);

error...

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:  

/swt

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

This command will give an amount of specified items to the invoking character.
If an optional account ID is specified, and the target character is currently
online, items will be created in their inventory instead. If they are not
online, nothing will happen. It works essentially the same as 'getitem' (it even
works for negative ID numbers the same way) but is a lot more flexible.
Those parameters that are different from 'getitem' are:

you should take a look on the wiki instead of just blindly change it without know what it does...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

bro, this is example what it emistry said :)

getitem2 5334,1,1,20,0,0,0,0,0;

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:  

here's the full freebies script..

- 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(2375, 1);
 GetItem(2433, 1);
 GetItem(2537, 1);
 GetItem(2374, 1);
Set(#FREEBIES, 1);
}

// Event ends
End();
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

here's the full edited freebies script..

- script Freebies -1,{
OnPCLoginEvent:

// 1st: Announce login
if(getgmlevel() > 20) end;
Announce(StrCharInfo(0) + " has logged in.", bc_all);

// 2nd: Check freebies
if(!#FREEBIES)
{
 getitem2 2375,1,1,20,0,0,0,0,0;
 getitem2 2443,1,1,20,0,0,0,0,0;
 getitem2 2537,1,1,20,0,0,0,0,0;
 getitem2 2374,1,1,20,0,0,0,0,0;
Set(#FREEBIES, 1);
}

// Event ends
End();
}

Edited by mrlongshen
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...