They've given you the answer two times.The freaking pill or grenade script!
Yes it is, you can COPY A SECTION OUT and change TWO WORDS and it'll work.
Quote from: Falcondude on August 05, 2008, 09:31:32 AMYes it is, you can COPY A SECTION OUT and change TWO WORDS and it'll work.I don't know what section to copy out though, nothing seems like the code to get rid of the item. I've looked at the pill and grenades scripts and I can't find it.
function pillImage::onFire(%this,%obj,%slot){ if(!isObject(%obj.client.minigame)) return; for(%i=0;%i<5;%i++) { %toolDB = %obj.tool[%i]; if(%toolDB $= %this.item.getID()) { %obj.setDamageLevel(0); %obj.emote(HealImage); %obj.tool[%i] = 0; %obj.weaponCount--; messageClient(%obj.client,'MsgItemPickup','',%i,0); serverCmdUnUseTool(%obj.client); break; } }}