Jump to content
  • 0

[Request] GM Item Testing NPC


Fjaan

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  12/01/11
  • Last Seen:  

Hi,

First thanks in advance who ever gives it a though.

I basically want a NPC that will give items to lvl 50+ GM's. And not give using getitem but instead use bounditem command so the gm's can't take it out, drop, storage just use it and thats it.. And also if possible make the item available for 1 week only then it will disappear from their inv.

Also the shop can be some what like those donation shops so u can view items.

Thank you,

Edited by Fjaan
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

Yep you have to add it after the " : "

would be like:

-	script	gm_item_rest	-1,{
end;

OnPCLoginEvent:
if(getgmlevel() < 50) { end; } //if GM is below 50
if(gettime(4) != 0) { end; } //if day is NOT sunday

//here add the item deletions
//if(countitem(x), blahblah..)

end;
}

'gettime()'

*gettime(<type>)

This function will return specified information about the current system time.

1 - Seconds (of a minute)
2 - Minutes (of an hour)
3 - Hour (of a day)
4 - Week day (0 for Sunday, 6 is Saturday)
5 - Day of the month.
6 - Number of the month.
7 - Year.
8 - Day of the year.

It will only return numbers.

if (gettime(4)==6) mes "It's a Saturday. I don't work on Saturdays.";

Yup something like that...

Edited by Noah
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

Or you can just simply use 'getitem' and change these values in the file below.

rAthena > conf > battle > gm.conf

// The minimum level for a GM to be unable to distribute items.
// You should set this to the same level @item is set to in the atcommand.conf
// NEVER SET THIS VALUE TO 0, or you will block drop/trade for normal players
gm_cant_drop_min_lv: 90

//The trust level for your GMs. Any GMs ABOVE this level will be able to distribute items
//ie: Use Storage/Guild Storage, Drop Items, Use Vend, Trade items.
gm_cant_drop_max_lv: 90

change the '90' for whatever you want.

--------------------------------------------------------

And for the items disappearing every week, you can just add a script with the OnPCLoginEvent: function, checking the GM level and deleting if it's umm sunday or whatever..(even though it would depend in what day the item was made, but it will work just fine).

Edited by Noah
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  12/01/11
  • Last Seen:  

Or you can just simply use 'getitem' and change these values in the file below.

rAthena > conf > battle > gm.conf

// The minimum level for a GM to be unable to distribute items.
// You should set this to the same level @item is set to in the atcommand.conf
// NEVER SET THIS VALUE TO 0, or you will block drop/trade for normal players
gm_cant_drop_min_lv: 90

//The trust level for your GMs. Any GMs ABOVE this level will be able to distribute items
//ie: Use Storage/Guild Storage, Drop Items, Use Vend, Trade items.
gm_cant_drop_max_lv: 90

change the '90' for whatever you want.

Thanks for the reply, yeh i realized that i was supose to update my post but i just got home now. That should fix the problem of gm's not being able to distribute items at all.

And for the items disappearing every week, you can just add a script with the OnPCLoginEvent: function, checking the GM level and deleting if it's umm sunday or whatever..(even though it would depend in what day the item was made, but it will work just fine).

I have not used OnPCLoginEvent: script before should i be adding a day after " : " or time?

Also the reason why i made the request was because i never wrote a script to began with... So yeh i can edit once i have something to play around with but making my own is "IDK" <<< I DON"T KNOW ;(

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

if you have restricted the GM from trade / drop / storing...

then you can just use rentitem command so that the items will disappear after a short period of time.

For Example :

Give a Valkyie Helm with 1 Days of Durations

rentitem 5171,86400;

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