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

fixed

Quickshot

Member
Joined
Nov 8, 2008
Messages
595
Reaction score
8
heyo... i have a very small and nubbish problem what do i put in config to change it to non pvp i have
Code:
worldType = "nonpvp"
and it doesnt work
 
create a creature script
Code:
<event type="Combat" name="stopPVP" event="script" value="nopvp.lua"/>

then make nopvp.lua inthe scripts folder and paste:
Code:
function onCombat(cid, target)
     if isPlayer(target) then
          return FALSE
     end
return TRUE
end

simple solution, of course you'd have to fix it up a bit if you want Guild Wars...

edit:
oh yeh, add this to Login.lua:
under:
Code:
registerCreatureEvent(cid, "ReportBug")

add:
Code:
registerCreatureEvent(cid, "stopPVP")
 
@up dont work
also i did what you said to do tosuxo but didnt work i get a error
Code:
[Error - CreatureEvent::configureEvent] no valid type for creature event.combat
warning: [Base Events::LoadFromXml] Can not configure event
 
Last edited:
Back
Top