• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Potowanie na odleglosc

zduna

Banned User
Joined
May 3, 2010
Messages
201
Reaction score
0
na moim serwerze mozna potowac na odleglosc
jak to naprawic ?
 
w skrypcie pod:
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
dodaj:

PHP:
 if(getDistanceBetween(toPosition, fromPosition) > 1)then return TRUE end
 
Dodalem jak kazales i skrypt nie dzialal wcale :(
bende wdzieczny jesli lookniesz na moj skrypt




local MIN = 200
local MAX = 300
local EMPTY_POTION = 7635

local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))

function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end

if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end

if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 80) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
doCreatureSay(itemEx.uid, "Only sorcerers and druids of level 80 or above may drink this fluid.", TALKTYPE_ORANGE_1)
return TRUE
end

if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end

doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, EMPTY_POTION)
return TRUE
end
 
tak to wyglada ;d

<action itemid="7588" script="liquids/strong_health.lua" allowfaruse="1"/>
<action itemid="7589" script="liquids/strong_mana.lua" allowfaruse="1"/>
<action itemid="7590" script="liquids/great_mana.lua" allowfaruse="1"/>
<action itemid="7591" script="liquids/great_health.lua" allowfaruse="1"/>
<action itemid="8472" script="liquids/great_spirit.lua" allowfaruse="1"/>
<action itemid="8473" script="liquids/ultimate_health.lua" allowfaruse="1"/>
<action itemid="7618" script="liquids/health_potion.lua" allowfaruse="1"/>
<action itemid="7620" script="liquids/mana_potion.lua" allowfaruse="1"/>
<action itemid="8704" script="liquids/small_health.lua" allowfaruse="1"/>
<action itemid="8474" script="liquids/antidote_potion.lua" allowfaruse="1"/>
 
Back
Top