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

Kurre Kurrson

New Member
Joined
Aug 11, 2010
Messages
125
Reaction score
3
Hello guys!

Atm I am working on a custom made evolution server. But I got a few problems that I need help with!

When entering PZ the "battle cross" does not dissapear.
Ive added script for animate text, but it dosent work at all. Ive done this tons of times before and I am sure I am doing the right thing even tried like 3-4 different scripts. What could the problem be?
 
Its a source edit.

player.cpp

Replace
Code:
  if(getZone() == ZONE_PROTECTION)
     icons |= ICON_PROTECTIONZONE;

with this
Code:
  if(getZone() == ZONE_PROTECTION)
   {
 
     icons |= ICON_PROTECTIONZONE;
   
     // Don't show ICON_SWORDS if player is in protection zone.
     if(hasBitSet(ICON_SWORDS, icons))
       icons &= ~ICON_SWORDS;
   }

I found it around line 500

And if I remember correctly, some distros dont use "ICON_PROTECTIONZONE" they use something different, or was it "ICON_SWORDS".
 
cryingdamson 0.3.6 (8.60) V8.2

Never changed anything in sources so I have no clue on where to find em etc, some directions would be awesome though! Thanks for your help
 
Well then you will have to compile it yourself. I have never been able to compile 0.3.6 or 0.4 to x64. And even if you have a 64 bit OS you can run a 32 bit application
 
Well im just confused right now, I think ill just try to find some tutorials or something instead when I got the time for it. Thanks for the help though
 
add -m64 in compiler setting and it is a x64.
Other Solution.not efficient
in globalevent with interval="1"
Code:
local function cancelConditions(cid)
doRemoveCondition(cid, CONDITION_INFIGHT)
doRemoveCondition(cid, CONDITION_FIRE)
doRemoveCondition(cid, CONDITION_ENERGY)
doRemoveCondition(cid, CONDITION_DRUNK)
doRemoveCondition(cid, CONDITION_PARALYZE)
doRemoveCondition(cid, CONDITION_CURSED)
doRemoveCondition(cid, CONDITION_HUNTING)
doRemoveCondition(cid, CONDITION_BLEEDING)
doRemoveCondition(cid, CONDITION_POISON)
return false
end
function onThink(interval)
for _, cid in ipairs(getPlayersOnline()) do
local pos, tile = getThingPos(cid), getTileThingByPos(getThingPos(cid))
if getTilePzInfo(pos) == true then
cancelConditions(cid)
end
return true
end
end
 
The script works but I get this error in console : error - GlobalEvents::think] Couldn't execute event: pz

(I named the script/event to pz.)

Thanks in advance
 
Back
Top Bottom