• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

Searing Fire pomoc

Status
Zamknięty.

Kuszczyk

Advanced User
Zarejestrowany
Dołączył
Kwiecień 14, 2010
Posty
155
Liczba reakcji
6
Cze?? mam fioletowy taki ogie? (wiecie na 100% jaki zabiera on chyba 300 czy tam 600hp) wi?c jest taka sprawa bo on u mnie w og?le nie dzia?a!!! Wchodz? na niego i nic:P Czy mo?e kto? mi pom?c jak to zrobi? by zabiera? te hp??
 
Odp: Searing Fire pomoc

movements.xml

PHP:
    <movevent type="StepIn" itemid="1506" event="function" value="onStepInField"/>
    <movevent type="AddItem" itemid="1506" event="function" value="onAddField"/>
    <movevent type="StepIn" itemid="1507" event="function" value="onStepInField"/>
    <movevent type="AddItem" itemid="1507" event="function" value="onAddField"/>
    <movevent type="StepIn" itemid="7359" event="function" value="onStepInField"/>
    <movevent type="AddItem" itemid="7360" event="function" value="onAddField"/>

Nie jestem pewien czy to wszystko. Mam nadzieje, ?e to zadzia?a.
 
Odp: Searing Fire pomoc

.../data/movements/scripts/fire_filed.lua
PHP:
function onStepIn(cid, item, position, fromPosition)|
local player = getThingfromPos(position.uid) 
if isPlayer(player) == true then
doPlayerAddHealth(cid, -300)
end
return true
end

.../data/movements/movements.xml
Kod:
<movevent type="StepIn" itemid="[COLOR="Red"]IDfielda[/COLOR]" event="script" value="fire_field.lua"/>
IDfielda - id fielda

Nie testowany, mam nadzieje ?e dzia?a.

Pozdrawiam!
Yoxino
 
Ostatnia edycja:
Odp: Searing Fire pomoc

Nie dzia?a:P REFESH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 
Odp: Searing Fire pomoc

Po pierwsze wchodzisz normalnym charem czy godem?... Godowi ze tak powiem nic hp nie zabierze.
 
Odp: Searing Fire pomoc

wchodz? normalnym charem... nie jestem chyba noobem??
 
Odp: Searing Fire pomoc

Kod:
function onStepIn(cid, item, position, fromPosition)
if (isPlayer(cid) == true) then
doPlayerAddHealth(cid, -300)
end
return true
end
 
Status
Zamknięty.
Back
Do góry