14-08-2008, 10:51 AM
Take advantage of the TempTile.
Set the timer to one of the variables in there, and then do a check.
Try.. erm, CheckGetMapItem or something in the server. It handles all the stuff when pressing Enter. At the end, add something like:
Then the subroutine something like this:
Set the timer to one of the variables in there, and then do a check.
Try.. erm, CheckGetMapItem or something in the server. It handles all the stuff when pressing Enter. At the end, add something like:
Code:
CheckForage index, map, x, y
Then the subroutine something like this:
Code:
If Player(index).ForageTimer > gettickcount + 1000 then
GiveItem index, ITEM#, ITEMVAL
Player(index).foragetimer = gettickcount
playermsg "omfg u got something!", white
exit sub
else
playermsg "u cant get that u silly fishcake", white
end if
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?