• 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
 
Ok,I'm done :)
here yo go, fully working and tested on TFS...

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)
			        doSendMagicEffect(frompos, CONST_ME_FIREAREA) 
				       doPlayerSendTextMessage(cid, 22, "The arrow has been turned into a poison arrow!")
					
		   end
       end			   
end
 
<cough> I r noob plx, I don't know where to put this..

Lol, do this:

1) go to your "data\actions\scripts\other" directory.

2) copy any file from there and paste it in the same folder.

3) now you have "copyofxxx" in that folder, change the name from "copyxxx" to "poisonarrow"

4) open poisonarrow.lua and paste this into it:

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)
			        doSendMagicEffect(frompos, CONST_ME_FIREAREA) 
				       doPlayerSendTextMessage(cid, 22, "The arrow has been turned into a poison arrow!")
					
		   end
       end			   
end


5) save the file and exit.

6) go to your "data\actions" directory and open "actions.xml"

7)below
PHP:
<!-- Other -->
paste this:
PHP:
<action itemid="7253" script="other/poisonarrow.lua"/>

8) save and exit

9) you're done!
 
Thanks Nirer, one more thing though... When I use the vial, it turns into a vial of water instead of an empty one... Any suggestions on how to fix that?
 
It is the right ID, It is just changing into a water one, even though it has the same ID as a regular...

And thanks for all your help Nirer :D
 
after the "2006" ID for the vial, I had to add a comma and then 0 for the contents of the vial... 0 for nothing 1 is water :p
 
Back
Top