• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

NPC Aol Saller Npc

andrewss

Nice Member
Joined
Jun 12, 2010
Messages
122
Reaction score
1
Location
E G Y P T
i will show aol saller npc

open data/npc add aol saller
Code:
<?xml version="1.0" encoding="UTF-8"?> 
<npc name="data/npc/scripts/default" script="aol saller.lua" walkinterval="2000" floorchange="0"> 
    <health now="100" max="100"/> 
    <look type="300" head="57" body="59" legs="40" feet="76" addons="0"/> 
    <parameters> 
          <parameter key="message_greet" value="hello |PLAYERNAME|. i sell aol,ropeand shovel. want buy say {trade}."/>  
          <parameter key="module_shop" value="1"/> 
          <parameter key="shop_buyable" value="aol,2173,10000"/> 
    </parameters> 
</npc>

and open data/npc/scripts add default
Code:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

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

npcHandler:addModule(FocusModule:new())

now you have aol saller npc good luck :D
 
oO
is it that that hard to script?

who is "saller" ftw!!
 
Back
Top