• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Help Please thank you.

Runawayx100

New Member
Joined
Jun 9, 2011
Messages
20
Reaction score
0
Hi, Im new to Otland, never Really Used It until the ofther day its quite helpfull, But Ermm, Iv got a problem with my OT, when i import Npc's though my
Map Editor (RME), It works, But when i try open my Ot, On the Booter It Says, cannot Load Rasta Man (Npc), Please can Someone help Me, If Its better and more
easyier, you can contact me via Msn Messenger.

Msn messenger Address :- [email protected]


thank you very much With your help, hope to speak soon
 
<?xml version="1.0" encoding="UTF-8"?>
<npc name="Evul Eye" script="evul eye.lua" walkinterval="0" floorchange="0">
<health now="100" max="100"/>
<look typeex="11672"/>
<parameters>
<parameter key="message_greet" value="Hello |PLAYERNAME|, I'm trading your 100 Eyes for 25x exp poem, Do you want to {change}?"/>
</parameters>
</npc>
 
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, 'change') or msgcontains(msg, '100')) then
selfSay('Do you want to give me 100 eyes for 25x exp poem?', cid)
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
if(getPlayerItemCount(cid, 11191) >= 100) then
if(doPlayerRemoveItem(cid, 11197, 100)) then
doPlayerAddItem(cid, 12466, 25)
selfSay('Here you are.', cid)
else
selfSay('Sorry, you don\'t have enough eyes.', cid)
end
else
selfSay('Sorry, you don\'t have enough eyes.', cid)
end
talkState[talkUser] = 0
elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser])) then
talkState[talkUser] = 0
selfSay('Ok then.', cid)
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
LUA:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandlernCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandlernCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandlernCreatureSay(cid, type, msg) end
function onThink() npcHandlernThink() 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, 'change') or msgcontains(msg, '100')) then
selfSay('Do you want to give me 100 eyes for 25x exp poem?', cid)
talkState[talkUser] = 1
elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
if(getPlayerItemCount(cid, 11191) >= 100) then
if(doPlayerRemoveItem(cid, 11197, 100)) then
doPlayerAddItem(cid, 12466, 25)
selfSay('Here you are.', cid)
else
selfSay('Sorry, you don\'t have enough eyes.', cid)
end
else
selfSay('Sorry, you don\'t have enough eyes.', cid)
end
talkState[talkUser] = 0
elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser])) then
talkState[talkUser] = 0
selfSay('Ok then.', cid)
end

return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

just put
LUA:
 at the start and that with a / before the L at the end
 
Back
Top