Jump to content
cder

Função Pegar Item

Recommended Posts

Olá pessoal, estou dando inicio ao meu projeto, e preciso de uma ajudinha, queria fazer uma função de pegar 1 item do player, a cada 1minuto, e somente quando o player tive-se online...

O que tentei ?

function    script    pegaritem    {

getcharid(0);

    if(getcharid(0)){
    attachrid(getcharid(3));
    end;
    }
else{
    if(attachrid(getcharid(3))){
    OnTimer60000:
    delitem 502,1;    
    end;
        }
    }
}

Resultado ?

Nada Ocorreu 😕 alguém pode me da essa pequena ajuda ?, significa muito pro meu serve isso 😞

Edited by Emistry
Please use codebox.
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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.