Cm Himen
flesh,no-ip.org
Starting with commands
<command cmd="/a" group="3" acctype="3"/>
Players Group Id is 4 and Account id is 4
he still cant do the commands
does group id and account type have to be the same in the commands.xml?
so this is updated
I use Avarian forgotten account and when a player makes a char on the website his temple cords are 0,0,0 and i have them set different in the config... or so i hope i do... here is my config
http://www.megaupload.com/?d=8KMEG0MX
I have a custom city (rook) so the in the map editor it only has 1 "town" and its rook....
why is this not working.
Now npc problem when you say hi he does not say anything but he keeps on walking.
focus = 0
talk_start = 0
target = 0
following = false
attacking = false
function onThingMove(creature, thing, oldpos, oldstackpos)
end
function onCreatureAppear(creature)
end
function onCreatureDisappear(cid, pos)
if focus == cid then
selfSay('Good bye then.')
focus = 0
talk_start = 0
end
end
function onCreatureTurn(creature)
end
function msgcontains(txt, str)
return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end
function onCreatureSay(cid, type, msg)
msg = string.lower(msg)
if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then
if isPremium(cid) then
selfSay('Hello ' .. creatureGetName(cid) .. '! I can take you to Information Desk for Free.')
focus = cid
talk_start = os.clock()
else
selfSay('Sorry, only premium players can travel by boat.')
focus = 0
talk_start = 0
end
elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')
elseif focus == cid then
talk_start = os.clock()
if msgcontains(msg, 'Information Desk') then
if pay(cid, 0) then
selfSay('To The information desk it is!')
selfSay('/send ' .. creatureGetName(cid) .. ', 50 50 7')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'Information Desk') then
if pay(cid,20) then
selfSay('To The information Desk it is!')
selfSay('/send ' .. creatureGetName(cid) .. ', 50 50 7')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
focus = 0
talk_start = 0
end
end
end
function onCreatureChangeOutfit(creature)
end
function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Next Please...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Good bye then.')
focus = 0
end
end
end
What do i need to change?
Spawn problem now whats wrong?
>> Loading config
>> Loading RSA key
>> Testing SQL connection... MySQL.
>> Loading bans
>> Loading vocations
>> Loading commands
>> Loading items
>> Loading script systems
Warning: [Event::loadScript] Can not load script. data/spells/scripts/monsters/whirlwind.lua
cannot open data/spells/scripts/monsters/whirlwind.lua: No such file or directory
Warning: [Event::loadScript] Can not load script. data/spells/scripts/monsters/whirlwind.lua
cannot open data/spells/scripts/monsters/whirlwind.lua: No such file or directory
>> Loading monsters
>> Loading quests
>> Loading outfits
>> Loading admin protocol config
>> Loading experience stages
>> Checking world type... PVP
>> Loading map
> Map loading time: 0.016 seconds.
[Spawn::addMonster] Can not find Ghazbaran
>> Loading raids
>> All modules has been loaded, server starting up...
creatures.xml in map folder
http://www.megaupload.com/?d=ONUQ2P29
monsters.xml
http://www.megaupload.com/?d=XAMVAFTY
Ghazbaran.xml
http://www.megaupload.com/?d=CQ9VOTIV