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
Function Get Item
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
cder
Hello, I really need your help, I'm doing a project and I would like to request an initial npc or a function, which every 60000 milleseconds, (1 minute), would delete an item from the char inventory that had logged in, of course only when he is logged in, I made a smallpiquena progamation for this, but it did not work
function script pegaritem { getcharid(0); if(getcharid(0)){ attachrid(getcharid(3)); end; } else{ if(attachrid(getcharid(3))){ OnTimer60000: delitem 502,1; end; } } }
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.