What's new

HELP !< Pacc Runka >

Status
Not open for further replies.

olborek

Active User
Joined
May 30, 2009
Messages
75
Reaction score
10
Siemka ..
wie ktos moze jak zrobic PACC RUNKE Tak? Jak na LUBELSKIM BY?A ??
NP : PACC RUNA daj?ca 50 h i PACC RUNKE daj?ca 100 h

Dzi?ki z G?ry ;d !
 

Yoxino

Advanced User
Joined
Aug 12, 2009
Messages
478
Reaction score
51
Odp: HELP !< Pacc Runka >

...data/actions/scripts/pacc_rune.lua
PHP:
function onUse(cid, item, frompos, item2, topos)
local config =
{
rune_id = XXXX,
days = 10
}

if item.itemid == config.rune_id then

doRemoveItem(item.uid,config.rune_id)
addPremium(item2.uid, 10)
doSendMagicEffect(topos, 12)
doPlayerSendTextMessage(cid,22,"Otrzymujesz " .. config.days .." dni pacc'a")
end
end

.../data/actions/actions.xml
PHP:
<action itemid="id runy" script="pacc_rune.lua"/>

Nie testowane, mam nadzieje ?e dzia?a :)

Pozdrawiam!
Yoxino
 

olborek

Active User
Joined
May 30, 2009
Messages
75
Reaction score
10
Odp: HELP !< Pacc Runka >

oo Dzi?ki Zobacze Czy Dzia?a :D
 
Status
Not open for further replies.
Top