Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- local parchs = {
- [7702] = {storage = 18000, spells = {"Berserk", "Death Strike"}},
- }
- local parch = parchs[item.itemid]
- local learn = "You learn this spells:/n/n"
- if parch.storage < 1 then
- for _, spell in ipairs(parch.spells) do
- doPlayerLearnInstantSpell(cid, spell)
- learn = learn .. spell .. "/n"
- end
- doShowTextDialog(cid, 2160, learn)
- setPlayerStorageValue(cid, parch.storage, 1)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement