What's new

Outfit rune

Status
Not open for further replies.

macio994

User
Joined
Oct 6, 2008
Messages
31
Reaction score
1
mam rune zmieniajaca outfit tylko jak silnik wlaczam blad mi wyskakuje "attempt to call global"i nie dziala

oto skrypt:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 27)

local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
addOutfitCondition(condition, 0, 33, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 48, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 68, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 57, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 34, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 104, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 35, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 99, 0, 0, 0, 0)
addOutfitCondition(condition, 0, 101, 0, 0, 0, 0)
setCombatCondition(combat, condition)

local area = createCombatArea( { {1, 1, 1}, {1, 3, 1}, {1, 1, 1} } )
setCombatArea(combat, area)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
 

Xane

Advanced User
Joined
Aug 23, 2008
Messages
208
Reaction score
9
Odp: Outfit rune

Dziwna ta runka o_O ;]
 

Ineka

User
Joined
Jul 21, 2008
Messages
22
Reaction score
0
Odp: Outfit rune

A mo?e Ja Ci pomog? ;)
W data/action/scripts
zr?b plik o nazwie addorunes.lua po czym wklej tam to :
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == [color=red]2272[/color] then
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,2271)
doPlayerAddAddon(cid, [color=white](=)[/color], 2)
doPlayerAddAddon(cid, [color=white](=)[/color], 2)
doPlayerAddAddon(cid, [color=white](=)[/color], 2)
doPlayerAddAddon(cid, [color=white](=)[/color], 2)
doPlayerAddAddon(cid, [color=white](=)[/color], 2)
doPlayerAddAddon(cid, [color=white](=)[/color], 2)
doSendMagicEffect(playerpos, 12)
doPlayerSendTextMessage(cid,22,"Dostales pare fajnych addonow!")
end
end
Tam Gdzie 2272 Wpisujesz id runki kt?ra ma dawa? addony...
Tam Gdzie ( = ) Wpisujesz id outfitu.. Po czym runka da ten outfit np :
Code:
doPlayerAddAddon(cid, 136, 2)
To b?dzie na Citizen outfit.
Nie wiesz sk?d wzi?? te id outfitu ? :
Code:
[color=white]136[/color] - Citizen
[color=white]137[/color] - Hunter
[color=white]138[/color] - Mage
[color=white]139[/color] - Knight
[color=white]140[/color] - Nobleman/woman
[color=white]141[/color] - Summoner
[color=white]142[/color] - Warrior
[color=white]147[/color] - Barbarian
[color=white]148[/color] - Druid
[color=white]149[/color] - Wizard
[color=white]150[/color] - Oriental
[color=white]155[/color] - Pirate
[color=white]156[/color] - assassin
[color=white]157[/color] - Beggar
[color=white]158[/color] - Shaman
[color=white]252[/color] - Norseman/woman
[color=white]269 [/color]- Nightmare
[color=white]270[/color] - Jester
[color=white]279[/color] - Brotherhood
Ok Teraz wchodzisz w :
Data/actions/actions.xml
i tam wklejasz to :
Code:
<action itemid="[color=red]2272[/color]" script="addonrunes.lua" />
tam gdzie : 2272 wpisujesz ID runki ^^
I masz Addon rune :) Je?li czego? nie napisa?em lub napisa?em nie zrozumiale to sorry ale to m?j pierwszy pomocniczy post na tej str. Ineka
 
Status
Not open for further replies.
Top