• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Wszystkie blessy u NPC za pomocą jednej komendy

lenidas

New Member
Joined
Mar 18, 2010
Messages
149
Reaction score
0
Witam, jak zrobić żeby jednym poleceniem kupić wszystkie blessy?

Code:
local node = keywordHandler:addKeyword({'blessings'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Do you want to buy all blessings for 10000 (plus level depending amount) gold?'})
	node:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, [COLOR="Red"][B]number = 1[/B][/COLOR], premium = true, baseCost = 2000, levelCost = 200, startLevel = 30, endLevel = 120})
	node:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Too expensive, eh?'})

Muszę coś zmienić w tym wyróżnionym fragmencie, ale co?
 
To zrób sobie to w pętli.

for i = 1, 5 do
doAddPlayerBlessing(cid, i)
end

funkcja zapewne zła bo użyłem jej dla przykładu.
 
Back
Top