Srokes
Advanced User
- Joined
- Mar 8, 2009
- Messages
- 155
- Reaction score
- 3
- Age
- 28
Silnik Devland 8.0 SQL
Witam mam problem ze skryptem w Movements. Napisa?em skrypt na to aby pod?oga od wymaganego voca dawa?a outfit, lecz gdy wchodz? na pod?og? robi si? crash i nie wiem ocb :curse:
W silniku nie ma ?adnych b??d?w przy ?adowaniu i po b??dzie gdy si? stanie na pod?og?.
SKRYPT :
W xml :
Za pomoc +++
Witam mam problem ze skryptem w Movements. Napisa?em skrypt na to aby pod?oga od wymaganego voca dawa?a outfit, lecz gdy wchodz? na pod?og? robi si? crash i nie wiem ocb :curse:
W silniku nie ma ?adnych b??d?w przy ?adowaniu i po b??dzie gdy si? stanie na pod?og?.
SKRYPT :
local out = {lookType=213,lookHead=81,lookAddons=0,lookLegs=88,lookBody=86,lookFeet=88}
local out2 = {lookType=12,lookHead=81,lookAddons=0,lookLegs=88,lookBody=86,lookFeet=88}
function onStepIn(cid, item, pos)
if(isPlayer(cid) == 1) then
if getPlayerVocation(cid) == 76 then
doSetMonsterOutfit(cid, out, -1)
elseif getPlayerVocation(cid) == 77 then
doSetMonsterOutfit(cid, out2, -1)
end
return 1
end
end
W xml :
<movevent event="StepIn" itemid="7351" script="outfit2.lua" />
Za pomoc +++