God Astro - 2008-11-08 15:25:43

Tworzymy w data\actions\scripts ziolo.lua i wpisujemy w nim takie cos:

    Spoiler:

   

Spoiler:

MAX_FOOD = 500
    function onUse(cid, item, frompos, item2, topos)
    -- Get food value depending on item.itemid
    food = 60
    if (getPlayerFood(cid) + food > MAX_FOOD) then
    doPlayerSendCancel(cid,"Przecpalem sie...")
    return 1
    end
    doPlayerFeed(cid,food)
    doRemoveItem(item.uid,1)
    doPlayerAddHealth(cid,-100)
    doSendMagicEffect(topos,2)
    doPlayerSay(cid,"Pale ziolo, jest wesolo!",1)
    return 1
    end

Później w actions.xml (data\actions\) dodajemy taka linijkę:

    Spoiler:

   

Spoiler:

<action itemid="2802" script="ziolo.lua" />

Przyda się na OTSy RPG, za palenie zioła odejmuje ci 100 hp, potem dorobię, żeby coś jeszcze się działo :X
Liczę na +

Skrypt nie mój! (+) mi sie nie należy ale jak ktoś chce dać ^^

Uzzio - 2008-11-16 17:26:46

Astro cos ten skrypt jest do dupy

GotLink.plgeodeta kurów materace hilding wola sushi