Jump to content

nueva funcion pc.give_item3


Croqueta

Recommended Posts

Con esta funcion ustedes pueden cojer la cantidad de items q este en la parte de count

function pc.give_item3(vnum,count,solo)    local count,num = count or 1,solo == true and 1 or 200    while count > 0 do        pc.give_item2(vnum, math.min(num,count))        count = count-num;    endend 

por ejemplo para los items q se puede apilar

 

pc.give_item3(27992,5000)--5000 perlas blanca

 

en este caso ustedes cojen 5000 perlas blanca

 

y para los items q no se puede apilar

 

pc.give_item3(19,20,true)--20 espada+9

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
Reply to this topic...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...