• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

-LUA & XML Dice

Status
Zamknięty.

trejzolekk

User
Zarejestrowany
Dołączył
Marzec 8, 2017
Posty
25
Liczba reakcji
0
Poszukuje scryptu na serwer dice poniewa? moj scrypt jak rolluje to nie pokazuje sie zaden napis np "wylosowales numer 2" Tylko na kostce numerek,
tfs 0,4
 
Odp: Dice

[lua]function onUse(cid, item, fromPosition, itemEx, toPosition)
if(fromPosition.x ~= CONTAINER_POSITION) then
doSendMagicEffect(fromPosition, CONST_ME_CRAPS)
else
doSendMagicEffect(getCreaturePosition(cid), 26)
end

local value = math.random(5792, 5797)
doTransformItem(item.uid, value)
doCreatureSay(cid, getCreatureName(cid) .. ' rolled a ' .. value - 5791 .. '.', TALKTYPE_ORANGE_1)
return true
end[/lua]
 
Status
Zamknięty.
Back
Do góry