vilagie |
Wysłany: Śro 18:33, 22 Mar 2006 Temat postu: Runa dająca eq |
|
Jest to runka dawajaca EQ
w data/actions/scripts
nazwij plik eqrune.lua
function onUse(cid, item, frompos, item2, topos)
if getPlayerAccess(cid) == 4 then
player1pos = {x=topos.x, y=topos.y, z=topos.z, stackpos=253}
player1 = getThingfromPos(player1pos)
if player1.itemid > 0 then
doSendMagicEffect(topos,12)
doPlayerAddItem(player1.uid,2973,1)
doPlayerAddItem(player1.uid,3296,1)
doPlayerAddItem(player1.uid,3496,1)
doPlayerAddItem(player1.uid,3290,1)
doPlayerAddItem(player1.uid,3490,1)
doPlayerAddItem(player1.uid,3230,1)
doPlayerAddItem(player1.uid,3287,1)
doPlayerAddItem(player1.uid,3384,1000)
doSendMagicEffect(topos,12)
doPlayerSendTextMessage(player1.uid,22,"Dostales EQ.")
return 0
else
doSendMagicEffect(frompos,2)
return 0
end
else
doPlayerSendTextMessage(cid,22,"Only GM's can use this rune.")
return 0
end
end
w data/actions/actions.xml
dodaj to
<action itemid="3113" script="eqrune.lua" allowfaruse="1"/>
idz do Items/items.xml
Edytuj/nacisnij CTRL+F wpisz 3113 i zamien linijke na ta
<item id="3113" name="eq rune" type="rune" maglevel="10" weight="0.1" /> |
|