[TalkActions] Transform System
2 posters
Strona 1 z 1
[TalkActions] Transform System
- Kod:
local transform =
{
--[1] = {2, 0, 0, 6, 30, 5}
}
local texts =
{
level = "You don\'t have enough level.",
mana = "You don\'t have enough mana.",
transform = "You transform to "
}
function onSay(cid, param, words)
local Player = transform[getPlayerVocation(cid)]
if (Player == nil) then
return true
end
if (getPlayerLevel(cid) < Player[5]) then
return doPlayerSendTextMessage(cid, 22, texts.level)
elseif (getCreatureMana(cid) < Player[6]) then
return doPlayerSendTextMessage(cid, 22, texts.mana)
end
doPlayerSetVocation(cid, Player[1])
doCreatureAddMana(cid, -Player[6])
doSetCreatureOutfit(cid, Player[4], -1)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + Player[2])
setCreatureMaxMana(cid, getCreatureMaxMana(cid) + Player[3])
doPlayerSendTextMessage(cid, 22, ""..texts.transform..""..getVocationInfo(Player[1]).name..".")
return true
end
i talkactions.xml
- Kod:
<talkaction words="tekst" event="script" value="nazwa.lua"/>
8.2+ Na starszych tez moze zadziala
$wirus- Uploader
- Liczba postów : 35
Join date : 16/11/2012
Re: [TalkActions] Transform System
Siemanko. Czy moglbys wytlumaczyc " --[1] = {2, 0, 0, 6, 30, 5} " ??
I czy dla nastepnej postaci wystarczy tylko dodac :
" --[1] = {2, 0, 0, 6, 30, 5};
--[2] = {2, 0, 0, 6, 30, 5}; "
??
I czy dla nastepnej postaci wystarczy tylko dodac :
" --[1] = {2, 0, 0, 6, 30, 5};
--[2] = {2, 0, 0, 6, 30, 5}; "
??
Ferdek- User
- Liczba postów : 1
Join date : 23/11/2012
Similar topics
» [Talkactions]Zmiana Nicku tzw. Namelock poprzez GM'a
» [NPC]Egg System
» Reborn System
» [Action]System Piłki Nożnej
» [8.54] Absorb System
» [NPC]Egg System
» Reborn System
» [Action]System Piłki Nożnej
» [8.54] Absorb System
Strona 1 z 1
Permissions in this forum:
Nie możesz odpowiadać w tematach