- Tibia Tools http://www.tibiatools.pun.pl/index.php - Ots http://www.tibiatools.pun.pl/viewforum.php?id=4 - [talkactions] odnawianie firewalkerów komendą !firewalker http://www.tibiatools.pun.pl/viewtopic.php?id=7 |
adix1310 - 2012-10-14 12:08:02 |
W talkactions dodajemy: Kod:<talkaction words="!firewalker" event="script" value="firewalker.lua"/> Kod:local config = { cost = 60000, -- Ile kosztuje naprawienie softow idsoft = 9933, -- ID softow idwornsoft = 10022 -- ID zepsutych softow } function onSay(cid, words, param) local pos = getCreaturePosition(cid) if getPlayerItemCount(cid, config.idwornsoft) >= 1 then if getPlayerMoney(cid) >= config.cost then doPlayerBuyItem(cid, config.idsoft, 1, config.cost, 1) doPlayerRemoveItem(cid, config.idwornsoft, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Twoje Firewalker Boots Zostaly Naladowane.") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Niemasz Kasy Na Naladowanie Soft Boots!") end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Niemasz Worn firewalker boots!") end return TRUE end |