• 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!

some errors that I would like to fix please help me.

bpm91

Intermediate OT User
Joined
May 23, 2019
Messages
928
Solutions
7
Reaction score
127
Location
Brazil
YouTube
caruniawikibr
1 - Release speak character password in default chanel.
2 - hit invisible monsters with runes like sd and hmm.
i use tfs 0.4 version 8.6
I also need a script from kazordoon npcs when you talkto kawill after pydar. i dont have script =/ ( one would have to give the storage, and the other would remove storage and give the blessing )
Sorry about my english. xd
 
Pydar npc (wrong)


function phoenix(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end

local player_gold = getPlayerItemCount(cid,2148)
local player_plat = getPlayerItemCount(cid,2152)*100
local player_crys = getPlayerItemCount(cid,2160)*10000
local player_money = player_gold + player_plat + player_crys

if player_money >= 10000 then
if doPlayerRemoveMoney(cid,10000) and getPlayerStorageValue(cid,8888888) <= 1 and getPlayerBlessing(cid, 2) then
npcHandler:say('Here is your blessing!', cid)
setPlayerStorageValue(cid,8888888,-1)
doSendMagicEffect(getCreaturePos(cid), 12)
doPlayerAddBlessing(cid, 2)
end
else
npcHandler:say('Alright then.', cid)
end

if getPlayerStorageValue (cid,8888888) == -1 then
npcHandler:say('You have already blessed you with this blessing.', cid)
end
end


local node1 = keywordHandler:addKeyword({'phoenix'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here you may receive the blessing {Spark of Phoenix}. But we must ask of you to sacrifice 10000 gold coins. Are you still interested?.'})
node1:addChildKeyword({'yes'}, phoenix, {})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then.', reset = true})


npcHandler:addModule(FocusModule:new())



Kawill npc -> i need Npc kawill give storage. and NPC pydar look storage, remove storage, give bless and speak "you already have the blessing"



local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end


function phoenix(cid, message, keywords, parameters, node)
if(not npcHandler:isFocused(cid)) then
return false
end
if getPlayerStorageValue(cid,8888888) <= -1 then
npcHandler:say('So receive the blessing of the life-giving earth, pilgrim.!', cid)
doSendMagicEffect(getCreaturePos(cid), 12)
setPlayerStorageValue(cid,8888888, 1)
end
if getPlayerStorageValue(cid,8888888) == 1 then
npcHandler:say('you already have the blessing.', cid)
end
end
keywordHandler:addKeyword({'bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here you may receive the blessing {Spark of The Phoenix}'})

local node1 = keywordHandler:addKeyword({'phoenix'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'The Spark of the Phoenix is given by name and by the great pyromancer in the nearby fire temple. Do you wish to receive my part of the Spark if the Phoenix? '})
node1:addChildKeyword({'yes'}, phoenix, {npcHandler = npcHandler, onlyFocus = true, reset = true})
node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then.', reset = true})


npcHandler:addModule(FocusModule:new())



I have function in tfs 1.2x
i need function in tfs 0.4 ( used to hit invisible monster with sd or hmm rune )



function onCastSpell(cid, var, isHotkey)
if Tile(var:getPosition()):getTopCreature() then
return doCombat(cid, combat, var)
end
end

and I would also like to know how do I speak the password in the default chat without being blocked....


Can someone help me? I'm new here in the forum
 
Back
Top