• 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!

Need Talkaction Fast

danielpt

Banned User
Joined
Jan 20, 2010
Messages
181
Reaction score
0
Hi there, in my otserv i have one vip wand/rod, so... i need one script with the player say: !element energy exemple, and atk element of wand/rod vip is change for energy...
:confused::confused::confused::confused::confused::confused:
 
sure, I improvised a script for you, hope you enjoy.

Script tested on Crying Damson: 0.3.5 Version: 8.50

First you need this in your Data/Item/Item.xml, but you need to replace these items, for my items.

Code:
	<item id="6107" name="simon special'staff">
		<attribute key="description" value="It is special weapon for Vip'Players."/>
		<attribute key="weight" value="2550"/>
		<attribute key="weaponType" value="wand"/>
		<attribute key="shootType" value="energy"/>
		<attribute key="range" value="7"/>
	</item>

Code:
	<item id="7735" article="the" name="star special'staff">
		<attribute key="description" value="It is special weapon for Vip'Players."/>
		<attribute key="weight" value="2300"/>
		<attribute key="weaponType" value="rod"/>
		<attribute key="shootType" value="holy"/>
		<attribute key="range" value="7"/>
	</item>

Code:
	<item id="7958" article="a" name="jester special'staff">
		<attribute key="description" value="It is special weapon for Vip'Players."/>
		<attribute key="weight" value="2700"/>
		<attribute key="weaponType" value="wand"/>
		<attribute key="shootType" value="fire"/>
		<attribute key="range" value="7"/>
	</item>

Now, you put this in your Data/Talkactions/talkactions.xml
Code:
	<talkaction words="!vipstaff" script="others/vipstaff.lua"/>
	<talkaction words="!vipwand" script="others/vipwand.lua"/>
	<talkaction words="!viprod" script="others/viprod.lua"/>

Here, the vip'weapon script you need create a lua file in your Data/Talkactions/name of scripts.

VipWand.lua Script!
Code:
function onSay(cid, words, param)
if doPlayerRemoveItem(cid,6107,1) then
doPlayerAddItem(cid,7958,1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
doCreatureSay(cid, "You created the Jester Special'Staff", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, 'You don\'t have a Vip Weapon.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
    return true
end

VipRod.lua Script!
Code:
function onSay(cid, words, param)
if doPlayerRemoveItem(cid,6107,1) then
doPlayerAddItem(cid,7735,1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
doCreatureSay(cid, "You created the Star Special'Staff", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, 'You don\'t have a Vip Weapon.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
    return true
end

VipStaff.lua Script!
Code:
function onSay(cid, words, param)
if doPlayerRemoveItem(cid,7735,1) or doPlayerRemoveItem(cid,7958,1) == TRUE then
doPlayerAddItem(cid,6107,1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
doCreatureSay(cid, "You reset your Vip'Weapon to Simon Special'Staff", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, 'You don\'t have a Vip Weapon.')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
    return true
end

Now you need add this in your Data/Weapons/Weapons.xml

Code:
		<wand id="7735" level="85" mana="35" min="100" max="155" type="holy" event="function" value="default"> <!-- Underworld Rod -->
		<vocation id="2"/>
	</wand>

Code:
		<wand id="7958" level="85" mana="35" min="100" max="155" type="fire" event="function" value="default"> <!-- Wand of Voodoo -->
		<vocation id="1"/>
	</wand>
Code:
	<wand id="6107" level="85" mana="35" min="100" max="155" type="energy" event="function" value="default"> <!-- Underworld Rod -->
		<vocation id="1"/>
		<vocation id="2"/>
	</wand>

EXPLAINING: You buy a Vip'weapon "Simon Special'Staff", then you have to say !vipwand or !viprod to change your Vip'weapon to element Fire or Element Holy. To reverse the wand or rod you need say !vipstaff to return to Simon Special'Staff.

If you want to do more wand's and rod's VIPs, you will need more items to improvise the elements...

THANKS FOR ALL AND GIVE-ME REP++ PLEASE! :thumbup::wub:​
 
Back
Top