• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

Skrypty & Kody Exp ring tfs 0.3.6 Dzialajacy poprawnie!

Zapalniczka

Active User
Zarejestrowany
Dołączył
Luty 2, 2015
Posty
132
Liczba reakcji
2
Tak jak w temacie poszukuje skrypt na exp ring dzialajca!! Wszystkie obczjalem i po zdjeciu exp ring czas dalej lecial..
 
Odp: Exp ring tfs 0.3.6 Dzialajacy poprawnie!

ring.lua
[lua]function onEquip(cid, item, slot)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has been activated! It is now: 1.5x doubled your former experience rate.")
doPlayerSetExperienceRate(cid, 1.5)
return true
end

function onDeEquip(cid, item, slot)
doPlayerSetExperienceRate(cid, 1.0)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has ended.")
return true
end[/lua]

movements.xml
[xml]<movevent type="Equip" itemid="7697" slot="ring" function="onEquipItem" script="ring.lua"/>
<movevent type="DeEquip" itemid="7697" slot="ring" function="onDeEquipItem" script="ring.lua"/>[/xml]

items.xml
[xml]<item id="7697" article="a" name="Exp Ring">
<attribute key="weight" value="40"/>
<attribute key="decayTo" value="0"/>
<attribute key="slotType" value="ring" />
<attribute key="duration" value="3600"/>
<attribute key="showduration" value="1"/>
</item>[/xml]

Czas ustawiasz w <attribute key="duration" value="3600"/>.
 
Odp: Exp ring tfs 0.3.6 Dzialajacy poprawnie!

Dzieki !!!
 
Back
Do góry