Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

how to put rental item on this freebies?


Hatake Kakashi

Question


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

-    script    Freebies    -1,{
OnPCLoginEvent:

// 1st: Announce login
Announce(StrCharInfo(0) + " has logged in.", bc_all);

// 2nd: Check freebies
if(!#FREEBIES)
{
 GetItem(2830, 2);
 GetItem(2831, 2);
Set(#FREEBIES, 1);
}

// Event ends
End();
}

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   285
  • Joined:  12/19/11
  • Last Seen:  

Use rentitem instead of getitem.

For rentitem syntax, see doc/script_commands.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   58
  • Joined:  11/20/11
  • Last Seen:  

Your script is going to announce everytime a Player logs in,that the Player logged in,do you want it to be like that?because that's often used for GM's,if a GM logs in.

Link to comment
Share on other sites


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

can i disable for GM Login? only in player login. thanks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  218
  • Reputation:   16
  • Joined:  01/24/12
  • Last Seen:  

if(getgmlevel() > 20) end;

Try adding that in before the "announce(strcharinfo(0)"

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...