Jump to content
  • 0

[Request] Check if the item is rental


Dissidia

Question


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

script that check the item if rental.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  407
  • Reputation:   159
  • Joined:  11/18/11
  • Last Seen:  

Try this. Not tested.

callfunc "F_Expire",Item_id;

map,x,y,z script name 100,{
input @ids;
if(callfunc("F_Expire",@ids)>0)
mes "Item "+getitemname(@ids)+" is rental";
else
mes "Item "+getitemname(@ids)+" is not rental";
close;
}

function script F_Expire {
getinventorylist;
for( set .@a,0; .@a < getarraysize(@inventorylist_id); set .@a,.@a+1)
if(getarg(0) == @inventorylist_id[.@a] && @inventorylist_expire[.@a] > 0)
 return 1;
else
 return 0;
}

Edited by Lilith
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  155
  • Topics Per Day:  0.03
  • Content Count:  535
  • Reputation:   23
  • Joined:  11/19/11
  • Last Seen:  

thaks. i will try this right now, i wish it work. thanks again..

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