What's new

Potrzebuje manarune

Status
Not open for further replies.

bossnopl1

User
Joined
Nov 9, 2009
Messages
10
Reaction score
0
Witam na moim serverze (89.76.55.118) nie ma manarune ! znaczy jest taka kostka ale nei dziala prosze o pomoc!
 

pick

User
Joined
May 17, 2009
Messages
15
Reaction score
3
Odp: Potrzebuje manarune

wsadz to w actions/scripts
Code:
function onUse(cid, item, frompos, item2, topos)
local MagicLevelToUse = 2
local MaxManaToAdd = 500
local MinManaToAdd = 350
local mLvl = getPlayerMagLevel(cid)
local ManaToAdd = math.random(MinManaToAdd, MaxManaToAdd)
if item2.itemid == 1 and mLvl >= MagicLevelToUse then
if item.type > 1 then
doSendMagicEffect(frompos,1)
doPlayerAddMana(cid,ManaToAdd)
doPlayerSay (cid,"Add Mana...",17) --doCreatureSay()--
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
elseif item2.itemid >= 2 then
doPlayerSendCancel(cid,"You can only use this rune on you/on other players.")
doSendMAgicEffect(frompos,2)
elseif item2.itemid == 1 and mLvl < MagicLevelToUse then
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have enough magic level to use this rune.")
end
return true
end
to wpisz w actions.xml
Code:
        <action itemid="[COLOR="DarkOrange"]xxxx[/COLOR]"script="paccrune.lua"  />
Wpisz id itemka kt?ry chcesz miec jako manarune ;-)
pozdrawiam pick ;)

nie wiem czy wsadzi?em w odpowiednie miejsce bo zaczynam dopiero sie bawi? w takie rzeczy ale u mnie dziala :p
 
Status
Not open for further replies.
Top