What's new

Problem z transform w tfs 0.3.6

Status
Not open for further replies.

Naruto322

Active User
Joined
Jan 27, 2009
Messages
51
Reaction score
0
Witam. Posiadam silnik TFS 0.3.6 i tworz? ots bleach. Wszystko jest dobrze tylko mam problem z komend? transform :( Gdy wpisuj? transform wywala mi debuga :( M?cz? si? z tym ju? 2 dni i nie mog? znale?? rozwi?zania. O to skrypt transform: [dam tylko ichigo i rukie bo te voce dopiero mam zrobione(all formy jak co?)]
rukia = { lookType = 70, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

ichigo = { lookType = 62, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

zaraki = { lookType = 50, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

ishida = { lookType = 51, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

renji = { lookType = 5, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

byakuya = { lookType = 30, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

neliel = { lookType = 37, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

ulquiorra = { lookType = 103, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

hitsugaya = { lookType = 6, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

grimmjow = { lookType = 159, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }



if words == "revert" then
pos = getPlayerPosition(cid)
pos2 = getPlayerPosition(cid)
if voc == 50 or voc == 150 or voc == 250 or voc == 350 then -- Rukia
doPlayerSetVocation(cid, 1)
doSetCreatureOutfit(cid, rukia, -1)
doSendMagicEffect(pos2, 17)
doPlayerSay(cid,"revert",16)

elseif voc == 60 or voc == 160 or voc == 260 or voc == 360 then -- Ichigo
doPlayerSetVocation(cid, 2)
doSetCreatureOutfit(cid, ichigo, -1)
doSendMagicEffect(pos2, 17)
doPlayerSay(cid,"revert",16)

I jeszcze d??
local function transform(parameters)
voc = getPlayerVocation(cid)
lvl = getPlayerLevel(cid)
mana = getPlayerMana(cid)

rukia50 = { lookType = 138, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
rukia150 = { lookType = 125, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
rukia250 = { lookType = 284, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
rukia350 = { lookType = 296, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

ichigo60 = { lookType = 83, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo160 = { lookType = 8, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo260 = { lookType = 59, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo360 = { lookType = 52, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

if words == "transform" then
pos3 = getPlayerPosition(cid)
if voc == 1 then -- Rukia 1 trans
if lvl >= 50 then
if mana >= 50 then
doPlayerSetVocation(cid,50)
doSetCreatureOutfit(cid, rukia50, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 100 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 50 lvl.")
doSendMagicEffect(pos3, 2)
end

elseif voc == 50 then -- Rukia 2 trans
if lvl >= 125 then
if mana >= 50 then
doPlayerSetVocation(cid,150)
doSetCreatureOutfit(cid, rukia150, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 140 lvl.")
doSendMagicEffect(pos3, 2)

end

elseif voc == 150 then -- Rukia 3 trans
if lvl >= 215 then
if mana >= 50 then
doPlayerSetVocation(cid,250)
doSetCreatureOutfit(cid, rukia250, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 250 lvl.")
doSendMagicEffect(pos3, 2)
end

elseif voc == 250 then -- Rukia 4 trans
if lvl >= 290 then
if mana >= 50 then
doPlayerSetVocation(cid,350)
doSetCreatureOutfit(cid, rukia350, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 350 lvl.")
doSendMagicEffect(pos3, 2)
end

elseif voc == 2 then -- Ichigo 1 trans
if lvl >= 50 then
if mana >= 50 then
doPlayerSetVocation(cid,60)
doSetCreatureOutfit(cid, ichigo60, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 50 lvl.")
doSendMagicEffect(pos3, 2)
end

elseif voc == 60 then -- Ichigo 2 trans
if lvl >= 120 then
if mana >= 50 then
doPlayerSetVocation(cid,160)
doSetCreatureOutfit(cid, ichigo160, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 140 lvl.")
doSendMagicEffect(pos3, 2)
end

elseif voc == 160 then -- Ichigo 3 trans
if lvl >= 210 then
if mana >= 50 then
doPlayerSetVocation(cid,260)
doSetCreatureOutfit(cid, ichigo260, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 250 lvl.")
doSendMagicEffect(pos3, 2)
end

elseif voc == 260 then -- Ichigo 4 trans
if lvl >= 285 then
if mana >= 50 then
doPlayerSetVocation(cid,360)
doSetCreatureOutfit(cid, ichigo360, 240000)
doPlayerAddMana(cid, -50)
doSendMagicEffect(pos3, 17)
doPlayerSay(cid,"transform",16)
else
doPlayerSendCancel(cid, "Wymagane 50 Many.")
doSendMagicEffect(pos3, 2)
end
else
doPlayerSendCancel(cid, "Wymagany 350 lvl.")
doSendMagicEffect(pos3, 2)
end
 

Naruto322

Active User
Joined
Jan 27, 2009
Messages
51
Reaction score
0
Odp: Problem z transform w tfs 0.3.6

A jak daje sobie voca takiego jaki mia? mie? transform to wszystko git ale jak wpisuje revert to nic sie nie dzieje :( Skrypt Revert:

local hasteRevert = createConditionObject(CONDITION_HASTE)
setConditionParam(hasteRevert, CONDITION_PARAM_TICKS, 1)
setConditionFormula(hasteRevert, 0, 0, 0, 0)

-----------------------------------------------------------------------------

local regenerationRevert = createConditionObject(CONDITION_REGENERATION)
setConditionParam(regenerationRevert, CONDITION_PARAM_TICKS, -1)
setConditionParam(regenerationRevert, CONDITION_PARAM_MANAGAIN, 0)
setConditionParam(regenerationRevert, CONDITION_PARAM_MANATICKS, 0)

local rukiaRevert = createConditionObject(CONDITION_OUTFIT)
setConditionParam(rukiaRevert, CONDITION_PARAM_TICKS, 1)
addOutfitCondition(rukiaRevert, 0, 70, 0, 0, 0, 0)

local ichigoRevert = createConditionObject(CONDITION_OUTFIT)
setConditionParam(ichigoRevert, CONDITION_PARAM_TICKS, 1)
addOutfitCondition(ichigoRevert, 0, 62, 0, 0, 0, 0)

i d??:

function onSay(cid, words, param)
if words == 'revert' then
if getPlayerVocation(cid) == 50 or getPlayerVocation(cid) == 150 or getPlayerVocation(cid) == 250 or getPlayerVocation(cid) == 350 then -- Rukia
doTargetCombatCondition(0, cid, rukiaRevert, CONST_ME_MAGIC_GREEN)
doTargetCombatCondition(0, cid, hasteRevert, CONST_ME_NONE)
doTargetCombatCondition(0, cid, regenerationRevert, CONST_ME_NONE)
doPlayerSetVocation(cid,1)
doPlayerSay(cid,"revert",16)

elseif getPlayerVocation(cid) == 60 or getPlayerVocation(cid) == 160 or getPlayerVocation(cid) == 260 or getPlayerVocation(cid) == 360 then -- Ichigo
doTargetCombatCondition(0, cid, ichigoRevert, CONST_ME_MAGIC_GREEN)
doTargetCombatCondition(0, cid, hasteRevert, CONST_ME_NONE)
doTargetCombatCondition(0, cid, regenerationRevert, CONST_ME_NONE)
doPlayerSetVocation(cid,2)
doPlayerSay(cid,"revert",16)

Zawarto?? talkactions.lua
<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
<!-- Gods -->
<talkaction log="yes" words="/addskill" access="5" event="function" value="addSkill"/>
<talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>
<talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
<talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/promote;/demote" access="5" event="script" value="promote.lua"/>
<talkaction log="yes" words="/shutdown" access="5" event="script" value="shutdown.lua"/>
<talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/>

<!-- Community Managers -->
<talkaction log="yes" words="/s" access="4" event="script" value="summon.lua"/>
<talkaction log="yes" words="/n" access="4" event="script" value="creature.lua"/>
<talkaction log="yes" words="/m" access="4" event="script" value="creature.lua"/>
<talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/>
<talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/>
<talkaction log="yes" words="/newtype" access="4" event="script" value="newtype.lua"/>
<talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>
<talkaction log="yes" words="/owner" access="4" event="script" value="owner.lua"/>
<talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>
<talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/>
<talkaction log="yes" words="/i" access="4" event="script" value="createitem.lua"/>
<talkaction access="4" words="/z" event="script" value="magiceffect.lua"/>
<talkaction access="4" words="/x" event="script" value="animationeffect.lua"/>
<talkaction access="4" words="/y" event="script" value="animatedtext.lua"/>
<talkaction log="yes" words="/bc" access="4" event="script" value="broadcastclass.lua"/>
<talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/>

<!-- Gamemasters -->
<talkaction log="yes" words="/ghost" access="3" event="function" value="ghost"/>
<talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/>
<talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
<talkaction log="yes" words="/t" access="3" event="script" value="teleportmaster.lua"/>
<talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>
<talkaction log="yes" words="/goto" access="3" event="script" value="teleportto.lua"/>
<talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
<talkaction log="yes" words="/kick" access="3" event="script" value="kick.lua"/>
<talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
<talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/>
<talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/>
<talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" words="/save" access="3" event="script" value="save.lua"/>
<talkaction log="yes" words="/clean" access="3" event="script" value="clean.lua"/>
<talkaction log="yes" words="/reports" access="3" event="script" value="reports.lua"/>
<talkaction log="yes" words="/mc" access="3" event="script" value="multicheck.lua"/>
<talkaction log="yes" access="3" words="/wp" event="script" value="waypoints.lua"/>

<!-- Senior Tutors -->
<talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
<talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/>
<talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/>
<talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>

<!-- Tutors -->
<talkaction log="yes" words="/baninfo" access="1" event="function" value="banishmentInfo"/>
<talkaction log="yes" access="1" words="/pos" event="script" value="position.lua"/>

<!-- Players -->
<talkaction words="!frags" event="script" value="frags.lua"/>
<talkaction words="!online" event="script" value="online.lua"/>
<talkaction words="!uptime" event="script" value="uptime.lua"/>
<talkaction words="!deathlist" event="script" value="deathlist.lua"/>
<talkaction words="!pvp" event="script" value="pvp.lua"/>
<talkaction words="!q" event="script" value="money.lua"/>
<talkaction words="!serverinfo" event="script" value="serverinfo.lua"/>
<talkaction words="/commands" event="script" value="commands.lua"/>
<talkaction words="transform" event="script" value="transform.lua"/>
<talkaction words="revert" event="script" value="revert.lua"/>

<!-- Houses -->
<talkaction words="alana res" filter="word-spaced" event="function" value="houseBuy"/>
<talkaction words="alana grav" filter="word-spaced" event="function" value="houseSell"/>
<talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
<talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
<talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
<talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
<talkaction words="alana som" filter="word-spaced" event="script" value="leavehouse.lua"/>

<!-- Guilds -->
<talkaction words="!createguild" event="function" value="guildCreate"/>
<talkaction words="!joinguild" event="function" value="guildJoin"/>

<!-- (Deprecated) Redirect old '/' to '!' -->
<talkaction words="/online" hide="yes" event="script" value="online.lua"/>
<talkaction words="/uptime" hide="yes" event="script" value="uptime.lua"/>
<talkaction words="/deathlist" hide="yes" event="script" value="deathlist.lua"/>
<talkaction words="/pvp" hide="yes" event="script" value="pvp.lua"/>
<talkaction words="/serverinfo" hide="yes" event="script" value="serverinfo.lua"/>
<talkaction log="yes" access="1" hide="yes" words="!pos" event="script" value="position.lua"/>
</talkactions>
 

Naruto322

Active User
Joined
Jan 27, 2009
Messages
51
Reaction score
0
Odp: Problem z transform w tfs 0.3.6

A jakby kto? jeszcze potrzebowa? to daje vocations.lua

<?xml version="1.0" encoding="UTF-8"?>
<vocations>
<vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="1.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>


Rukia


<vocation id="1" name="Rukia" description="a rukia" needpremium="1" gaincap="10" gainhp="20" gainmana="25" gainhpticks="20" gainhpamount="20" gainmanaticks="25" gainmanaamount="25" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.5" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.1" sword="2.2" axe="1.5" distance="1.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="50" name="Rukia1" description="a rukia 2 trans" needpremium="1" gaincap="10" gainhp="20" gainmana="25" gainhpticks="20" gainhpamount="20" gainmanaticks="25" gainmanaamount="25" manamultiplier="1.1" attackspeed="1800" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="2.3" distDamage="1.0" wandDamage="1.0" magDamage="3.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.2"/>
<skill fist="1.5" club="1.1" sword="2.2" axe="1.5" distance="1.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="150" name="Rukia2" description="a rukia 3 trans" needpremium="1" gaincap="10" gainhp="20" gainmana="25" gainhpticks="20" gainhpamount="20" gainmanaticks="25" gainmanaamount="25" manamultiplier="1.1" attackspeed="1650" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="3.3" distDamage="1.0" wandDamage="1.0" magDamage="4.9" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.8"/>
<skill fist="1.5" club="1.1" sword="2.2" axe="1.5" distance="1.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="250" name="Rukia3" description="a rukia 4 trans" needpremium="1" gaincap="10" gainhp="20" gainmana="25" gainhpticks="20" gainhpamount="20" gainmanaticks="25" gainmanaamount="25" manamultiplier="1.1" attackspeed="1480" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="4.2" distDamage="1.0" wandDamage="1.0" magDamage="5.8" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="2.4"/>
<skill fist="1.5" club="1.1" sword="2.2" axe="1.5" distance="1.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="350" name="Rukia4" description="a rukia last trans" needpremium="1" gaincap="10" gainhp="20" gainmana="25" gainhpticks="20" gainhpamount="20" gainmanaticks="25" gainmanaamount="10" manamultiplier="1.1" attackspeed="1350" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="5.4" distDamage="1.0" wandDamage="1.0" magDamage="6.8" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="3.3"/>
<skill fist="1.5" club="1.1" sword="2.2" axe="1.5" distance="1.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>


Ichigo


<vocation id="2" name="Ichigo" description="an ichigo" needpremium="1" gaincap="10" gainhp="25" gainmana="15" gainhpticks="10" gainhpamount="10" gainmanaticks="10" gainmanaamount="10" manamultiplier="1.1" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.1" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
<skill fist="1.5" club="1.1" sword="2.2" axe="1.5" distance="1.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="60" name="Ichigo1" description="an ichigo bankai" needpremium="1" gaincap="20" gainhp="25" gainmana="15" gainhpticks="10" gainhpamount="10" gainmanaticks="10" gainmanaamount="10" manamultiplier="1.4" attackspeed="1800" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="2.8" distDamage="1.0" wandDamage="1.0" magDamage="1.5" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.2"/>
<skill fist="1.2" club="1.1" sword="2.2" axe="1.5" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="160" name="Ichigo2" description="an ichigo half hollow mask" needpremium="1" gaincap="25" gainhp="25" gainmana="15" gainhpticks="10" gainhpamount="10" gainmanaticks="10" gainmanaamount="10" manamultiplier="3.0" attackspeed="1650" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
<formula meleeDamage="3.5" distDamage="1.0" wandDamage="1.0" magDamage="3.5" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.8"/>
<skill fist="1.1" club="1.1" sword="2.2" axe="1.5" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="260" name="Ichigo3" description="an ichigo full hollow mask" needpremium="0" gaincap="10" gainhp="25" gainmana="15" gainhpticks="10" gainhpamount="10" gainmanaticks="10" gainmanaamount="10" manamultiplier="1.1" attackspeed="1450" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="50">
<formula meleeDamage="4.7" distDamage="1.0" wandDamage="1.0" magDamage="4.5" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="2.4"/>
<skill fist="1.5" club="1.1" sword="2.2" axe="1.5" distance="1.0" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="360" name="Ichigo4" description="an ichigo hollow" needpremium="0" gaincap="10" gainhp="25" gainmana="15" gainhpticks="10" gainhpamount="10" gainmanaticks="10" gainmanaamount="10" manamultiplier="1.1" attackspeed="1320" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="50">
<formula meleeDamage="6.5" distDamage="1.0" wandDamage="1.0" magDamage="6.5" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="3.3"/>
<skill fist="1.5" club="1.1" sword="2.2" axe="1.5" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>

</vocations>
 

Casey

Active User
Joined
Mar 12, 2010
Messages
58
Reaction score
0
Odp: Problem z transform w tfs 0.3.6

zamaist tego

PHP:
rukia50 = { lookType = 138, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
rukia150 = { lookType = 125, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
rukia250 = { lookType = 284, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
rukia350 = { lookType = 296, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

ichigo60 = { lookType = 83, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo160 = { lookType = 8, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo260 = { lookType = 59, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }
ichigo360 = { lookType = 52, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0 }

daj to :
PHP:
rukia50 = { lookType = 138}
rukia150 = { lookType = 125}
rukia250 = { lookType = 284}
rukia350 = { lookType = 296}

ichigo60 = { lookType = 83}
ichigo160 = { lookType = 8}
ichigo260 = { lookType = 59}
ichigo360 = { lookType = 52}
 

Naruto322

Active User
Joined
Jan 27, 2009
Messages
51
Reaction score
0
Odp: Problem z transform w tfs 0.3.6

nadal debug :(

Teraz cos pozmienialem i nic w silniku nie pisze ale wczesniej jak wkleilem to twoje za moje i wpisalem transform to debug byl i cos w silniku pisalo ale nie pamietam co
wiem ze cos z transform.lua

@Edit
zapomnialem dodac ze za pomoc leci reput ^^

@Edit2
Znowu pisze ;/

29/10/2010 19:41:44] [Error - TalkAction Interface]
[29/10/2010 19:41:44] In a timer event called from:
[29/10/2010 19:41:44] data/talkactions/scripts/transform.lua:eek:nSay
[29/10/2010 19:41:44] Description:
[29/10/2010 19:41:44] (luaGetThingPosition) Thing not found
 
Last edited:

Sassin

Forum friend
Joined
Jun 13, 2009
Messages
1,281
Reaction score
107
Odp: Problem z transform w tfs 0.3.6

Bo nie masz GetThingPosition? Tak wed?ug mnie... Bo nie przypominam sobie, ?eby tfs posiada? tak? funkcje... Zamie? na GetThingPos, my?l?, ?e powinno dzia?a?. ; )
 

Naruto322

Active User
Joined
Jan 27, 2009
Messages
51
Reaction score
0
Odp: Problem z transform w tfs 0.3.6

A gdzie mam to da?? Bo w tym skrypcie nie ma nigdzie GetThingPosition to nie wiem gdzie to zamieni? ;/


@Edit
Znowu pisze cos innego ... Teraz juz debuga nie wywala tylko pisze transform i nic nie wyskakuje tylko ten blad w silniku

[30/10/2010 10:25:32] [C]: in function 'doSetCreatureOutfit'
[30/10/2010 10:25:32] data/talkactions/scripts/transform.lua:17: in function <data/talkactions/scripts/transform.lua:1>
 
Last edited:

Naruto322

Active User
Joined
Jan 27, 2009
Messages
51
Reaction score
0
@Refresh
Moze mi ktos zrobic tylko przyklad tych transow od poczatku? (inny skrypt bo ten juz nie wypali) na tylko jedn? profk?.
Jezeli ktos nie rozumie o co mi chodzi to powiem kr?tko:
Chc? by gdy sie wpisa?o "transform" np z profy o nazwie rukia normal (voc 1) zmienia?o na rukia 1 trans (voc 50 juz ulepszone hity itp itd)
I zeby tez jednoczesnie zmienialo outfit z wybranego na inny podam teraz tak? tabelk?:
Outfity:
Rukia Normal - out 70
Rukia 1 trans - out 138
Rukia 2 trans - out 125
Rukia 3 trans - out 284
Rukia 4 trans - out 296

Notka moderatorska:
Post pod postem - ??cz?.


Vocationy:
Rukia Normal - voc 1
Rukia 1 trans - voc 50
Rukia 2 trans - voc 150
Rukia 3 trans - voc 250
Rukia 4 trans - voc 350
I chodzi mi o to zeby np z voca 1 (w tym przypadku rukia normal) zmienialo na rukia 1 trans, z rukia 1 trans na rukia 2 trans itp. itd. To samo w przypadku outfitow
Ok wszystko juz wyjasnilem wiec prosze o pomoc :( Za pomoc reput ; D
 
Last edited by a moderator:

Naruto322

Active User
Joined
Jan 27, 2009
Messages
51
Reaction score
0
Odp: Problem z transform w tfs 0.3.6

@Refresh
Pomoze ktos? ;/
 

Deyvv

Active User
Joined
Nov 3, 2010
Messages
69
Reaction score
8
Odp: Problem z transform w tfs 0.3.6

Mo?e u?yj tego, sam takiego u?ywam, dobrze dzia?a ^^:
function onCastSpell(cid, var)
level = getPlayerLevel(cid)
profesja = getPlayerVocation(cid)
pos = getCreaturePosition(cid)
local rukia = {lookAddons = 0, lookType = 70, lookHead = 0, lookTypeEx = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}
local rukia2 = {lookAddons = 0, lookType = 70, lookHead = 0, lookTypeEx = 0, lookLegs = 0, lookBody = 0, lookFeet = 0}


--- RUKIA ---
if profesja == 2 then
if level > 99 then
doPlayerSetVocation(cid,3)
doCreatureChangeOutfit(cid,rukia)
doSendMagicEffect(pos, 6)
else
doPlayerSendCancel(cid, "You need level 100 to transform.")
end

elseif profesja == 3 then
if level > 149 then
doPlayerSetVocation(cid,4)
doCreatureChangeOutfit(cid,rukia2)
doSendMagicEffect(pos, 6)
else
doPlayerSendCancel(cid, "You need level 150 to transform.")
end

else
doPlayerSendCancel(cid, "You cannot transform.")
end

return true
end

To jest w spells jakby co. Do spells.xml dodaj:
<instant name="[Transform]" words="transform" lvl="1" mana="0" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="transform.lua"/>
Powiniene? sobie poradzi? z dodawaniem nowych profesji, z revertem te?. Powodzenia.
 

Naruto322

Active User
Joined
Jan 27, 2009
Messages
51
Reaction score
0
Odp: Problem z transform w tfs 0.3.6

Dzieki!!!!!!!!!! DZIALA!! : DDDD kocham cie stary xDDD ok leci reput ; DDD
 

Frenzy16

Active User
Joined
Jul 11, 2010
Messages
119
Reaction score
1
Odp: Problem z transform w tfs 0.3.6

a u mnie nie dzia?a.. jak dodaj? t? linijk? do spells to debuguje mi si? konsola ;/
(B??d wyskakuje)
 
Status
Not open for further replies.
Top