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

How to switch on skulls on pvpenfo?

Gothric

New Member
Joined
Feb 6, 2010
Messages
264
Reaction score
1
My world type is set to pvp-enforced and i one script i want add function

doCreatureSetSkullType(lastHitKiller, SKULL_RED)


it work on pvp type but not on pvp-enforced becouse on pvp-e.. skull are switched off :/ how i can fix it??
 
Just look at my config.


-- Battle
worldType = "pvp-enforced"
hotkeyAimbotEnabled = "yes"
protectionLevel = 1
killsToRedSkull = 3
pzLocked = 60000
deathLosePercent = 10
criticalHitChance = 7
removeAmmoWhenUsingDistanceWeapon = "yes"
removeChargesFromRunes = "yes"
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
oldConditionAccuracy = "no"
alternativeExhaust = 1000
stairJumpExhaustion = 2000
animationTextOnHeal = "yes"
 
Ye, altough it's not possible to make the exactly same formula in Lua - there is no function getDamageRatio

Who cares?
Code:
if targetlevel <80 then
doPlayerAddExperience(cid, getPlayerLevel(target) * 120) 
elseif targetlevel >80 and <150 then
doPlayerAddExperience(cid, getPlayerLevel(target) * 60) 
elseif targetlevel >150 then
doPlayerAddExperience(cid, getPlayerLevel(target) * 30) 
end


Sounds good enough for me :)
 
Who cares?
Code:
if targetlevel <80 then
doPlayerAddExperience(cid, getPlayerLevel(target) * 120) 
elseif targetlevel >80 and <150 then
doPlayerAddExperience(cid, getPlayerLevel(target) * 60) 
elseif targetlevel >150 then
doPlayerAddExperience(cid, getPlayerLevel(target) * 30) 
end


Sounds good enough for me :)


What should I add in creaturescript.xml?

and what shall I name the new lua file in creaturescripts.lua?
 

Similar threads

  • Question Question
RevScripts BLOCK MC PVP
Replies
4
Views
700
Back
Top