|
addEvent(function, 30 * 1000, paramaters)
that staircase is an ground or item? (i know ground is an item too but u know what i mean )
I want an Npc,That Could Change Tokens For Item Id -----
Example : I Would like to Change 20 Tokens For Magic Plate Armor..
For Example..
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid
if(msgcontains(msg, 'mpa') or msgcontains(msg, '10 tokens')) then
if getPlayerItemCount(cid,XXXX) >= 10 then
doPlayerRemoveItem(cid,XXXX,10)
selfSay('Okey, here you are!', cid)
doPlayerAddItem(cid,YYYY,1)
talkState[talkUser] = 0
else
selfSay('You dont have enought tokens!', cid)
talkState[talkUser] = 0
end
elseif(msgcontains(msg, 'offer')) then
selfSay('Here is my offer:', cid)
selfSay('10 tokens = MPA', cid)
selfSay('15 tokens = 5gp', cid)
selfSay('20 tokens = lump of dirt', cid)
end
return true
end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
in gesior put latestnews.php
Top Experiencia(332) Pakotii
Exp: 599705812(317) Tou Lombradinho
Exp: 525192104(315) Lynxzappa
Exp: 513141683(309) Noviinha
Exp: 482798423(307) Wolfsz
Exp: 475123017
Top Frags(309) Noviinha
Frags: 393x(281) Chegadinhoo
Frags: 258x(245) Amigos
Frags: 251x(317) Tou Lombradinho
Frags: 251x(306) Tittyz
Frags: 234x
Top Deaths(49) Enix Pally
Deaths: 112x(306) Tittyz
Deaths: 96x(239) Druidx
Deaths: 94x(317) Tou Lombradinho
Deaths: 83x(273) Dalai Lama
Deaths: 73x
Top Money(240) Mage Roots
GPs: 7853816(246) Bob Marley
GPs: 7304309(204) Kinao Blocker
GPs: 4000000(250) Nikki
GPs: 3339566(178) Jah
GPs: 3339178
ex: Odilon World - Latest News
I looking for scritp, when i said /emotespells on i turned on emotespells but when i said /emotespells off i have normal text spells.
is posible to make a script like a quest log? it might be a book showing getting some storage values and then saying to you the progress on that quest depending on the value, is possible?
Sure its possible, tell me item id, all storages and story etc.