• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Poison Arrow

Xune

Nathan Jennings
Joined
Feb 9, 2008
Messages
58
Reaction score
0
Okay, so first, I am Thinking this would be done in LUA, so if it isn't, would you please direct me in the correct direction?

Anyway, I'd like to request a script that makes it so if you use a vial of poison and an arrow, you get a poison arrow.. anyway, if that is possible, could someone make it and let me know how to use?


Kind regards,
-Nathan
 
One more thing... When you change them, is it possible to make it say "You've changed # arrows to poison arrows"

With # being the actual number of arrows you changed at a time?
 
Ok here it is:
*fixed vial water problem
*made it say how many arrows you've changed:

PHP:
function onUse(cid, item, frompos, item2, topos)
    ---Made By Nirer/Kakashi~Sensei/Naruto--- 
	  -- © CopyRight. Nirer Production --
      if(item.itemid==7253) then
	       if(item2.itemid==2544) then
		      doTransformItem(item2.uid, 2545)
			     doTransformItem(item.uid, 2006)
				   doChangeTypeItem(item.uid, 0)
			        doSendMagicEffect(frompos, CONST_ME_FIREAREA) 
				       doPlayerSendTextMessage(cid, 22, "You've transformed "..item2.type.." arrows into poison arrows!")
					
		   end
       end			   
end
 
Back
Top Bottom