Mastermind potion

Status
Zamknięty.

Zoool

User
Zarejestrowany
Dołączył
Wrzesień 7, 2009
Posty
27
Liczba reakcji
0
Witam chcial bym zrobic mastermind potion (id:7440)
takiego jak great mana potion lecz dawal by wiecej many

ale ... gdy wklejam tam skrypt z great mana potiona nie dziala ;/ co zmienic aby dzialal ?? chce aby dawal 700-900 many ale mial exauset jak great mana potion

oto skyprt gmp :
xxx napisał:
local MIN = 315
local MAX = 395
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

doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
doTransformItem(item.uid, EMPTY_POTION)
doRemoveItem(item.uid, 7635)
return TRUE
end


dam reputa
 
Odp: Mastermind potion

A po co masz robi? nowego potiona? ;o

local MIN = 315
local MAX = 395
tutaj masz minimalnie ile ma dawac i ile maxymalnie ...
Daj MIN = 700
Daj MAX = 900
i potion b?dzie dawa? od 700 do 900 many ;p
 
Odp: Mastermind potion

czytaj ze zrozumieniem... gdy wklejam ten skrypt do mastermind potiona nie dziala wgle ..........
 
Odp: Mastermind potion

Kod:
local MIN = 700
local MAX = 900
local EMPTY_POTION = 7440

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

doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
doTransformItem(item.uid, EMPTY_POTION)
doRemoveItem(item.uid, 7440)
return TRUE
end

zobacz ten sktypt ;d
 
Status
Zamknięty.
Back
Do góry