Soul_Bullock
New Member
- Joined
- May 4, 2011
- Messages
- 53
- Reaction score
- 1
#1
I need a script (NPC) I give him item (id XXXX) and second item (ID YYYY) and he give me new item (ID ZZZZ) [For all professions (all voc have other 1st item and the same 2nd item and ALL VOCATIONS HAVE OTHER NEW ITEM!]
#2
How edit this script to use this rune only Elite Knight?? (Now all voc use this rune)
[
Sorry for my bad English ;//
I need a script (NPC) I give him item (id XXXX) and second item (ID YYYY) and he give me new item (ID ZZZZ) [For all professions (all voc have other 1st item and the same 2nd item and ALL VOCATIONS HAVE OTHER NEW ITEM!]
#2
How edit this script to use this rune only Elite Knight?? (Now all voc use this rune)
[
PHP:
local config = {
ile_procent = 30,
storage = 1713,
time = 0.75, -- co ile mozna uzywac
konczy_sie = false -- true / false
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if not exhaustion.check(cid, config.storage) then
exhaustion.set(cid, config.storage, config.time)
doCreatureAddHealth(cid, (getCreatureMaxHealth(cid) / 100) * config.ile_procent)
doSendMagicEffect(getCreaturePosition(cid), 30)
if config.konczy_sie == true then
doRemoveItem(item.uid)
end
else
doPlayerSendCancel(cid, "You are exhausted.")
doSendMagicEffect(getCreaturePosition(cid), 2)
end
return true
end
Sorry for my bad English ;//