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

Hello Otlanders Need Help With That Script

oOIOo

HetZera.Net
Joined
Mar 30, 2010
Messages
221
Reaction score
1
Hello Otlanders Need Help With That Script:

I have Started New Project 0.3.5 And need That Script:

The Script Is:

Need All Steps te Make Server PVPe and Need The Scripts Be Like That:

1.if any player Kill another one get 2 lvls
2.the pvpe be in hours from 4-5 h in each day


What that script kills Mean:
*if player lvl 100 kill player lvl 200 get 2 lvls and if player lvl 200 kill player lvl 100 get 1 lvl .


What that script Time Mean:
*it means that in each day from 07:00 to 12:00 The server pvpe and the other time server pvp

Hope u Understand the Script and be able to help me


*******All The Steps Please*******

 
Last edited:
thats not a puzzle ? :D ... all that in config pvp enfo also exp on players ! but idk if it is possible to some thing change the type of world to pvp-enfo or some thing .. why u cant changet he world type around that time ? xd
 
No Need More Joking Replies need only the Good Replies that can help me if any one have the steps t create pvpe server 0.3.5 then help me
 
i know that it's easy but need the steps i tried more scripts but dont work
then need someone give me the true steps
 
man i know that u say the true but i need it as any other scripts what i do in creaturescripts and so
 
Edit your post, write like a human instead of writing like a retarded monkey playing with the align buttons, and I may try to read and script it for you.
 
Ok... now I'm talking with a person.

The 1-2 level you want it to get well, I'm not going to do anything about it, it depend totally on you, just move the amount of experience you get for killing a player in your config.lua, and with the rest of pvp-e options like minLevelThresholdForKilledPlayer etc...

About the automatic pvp to pvp-e, I think that is enough for you add a globalevent on that time that change the world type, I have no idea what do you mean with "make all steps pvp-e" or something like that, just change the world type with a globalevent that would be something like:

Code:
<globalevent name="changePvpe" time="7:00" event="script" value="changePvpe.lua"/>

And the script I guess something like

Code:
function onThink(interval, lastExecution, thinkInterval)
	setWorldType(3)

	return true
end

THAT IS NOT THE SCRIPT THAT YOU SHOULD USE, I'm just trying to explain myself... If you can't do it, I may code it for you tomorrow. 5:00am and I'm a human so, humans need sleep.
 
IDK if it's helpful or not but i got a few war ot scripts if you want them.


(If a player kills another, the pker gets 1 platinum coin)
Code:
function onKill(cid, target, lastHit)
local reward = {
        item = 2152, --ITEM ID!
        count = 1 -- How many?
}
        if(isPlayer(cid) and isPlayer(target)) then
	if getPlayerIp(cid) ~= getPlayerIp(target) then
                doPlayerAddItem(cid, reward.item, reward.count)
else
doPlayerAddExperience(cid, -1000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
                end
end
return TRUE
end



(If your below level 120, it gives u to 120)

Code:
function onLogin(cid)

	if getPlayerLevel(cid) < 120 then
	doPlayerAddExperience(cid, (getExperienceForLevel(120) - getPlayerExperience(cid)))
end
return TRUE
end



(Gives The Player Skills Once It Logs On)

Code:
function onLogin(cid)
local playerVoc = getPlayerVocation(cid)
local reqTries = getPlayerRequiredSkillTries
local skillStor = 56364
local gotSkills = getPlayerStorageValue(cid, 56364)


if playerVoc == 5 and gotSkills == -1 then
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,55)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 6 and gotSkills == -1 then
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,55)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 7 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_DISTANCE, reqTries(cid, SKILL_DISTANCE, 60))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 60))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,10)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 8 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_AXE, reqTries(cid, SKILL_AXE, 60))
doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 60))
doPlayerAddSkillTry(cid, SKILL_CLUB, reqTries(cid, SKILL_CLUB, 60))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 60))
doPlayerAddMagLevel(cid, 8)
setPlayerStorageValue(cid, skillStor, 1)

end
return TRUE
end

IDK if that helped any, but hey, it could xD
 
this might help, register it in login.lua etc and try
Code:
function onKill(cid, target, lastHit)
	if isPlayer(cid) and isPlayer(target)
		local lvl = getPlayerLevel(cid)
		if lvl >= getPlayerLevel(target) then
			doPlayerAddExperience(cid, getExperienceForLevel(getPlayerLevel(cid))+1)
		elseif lvl <= getPlayerLevel(target) then
			doPlayerAddExperience(cid, getExperienceForLevel(getPlayerLevel(cid))+2)
		end
	end
	return true
end
 
IDK if it's helpful or not but i got a few war ot scripts if you want them.


(If a player kills another, the pker gets 1 platinum coin)
Code:
function onKill(cid, target, lastHit)
local reward = {
        item = 2152, --ITEM ID!
        count = 1 -- How many?
}
        if(isPlayer(cid) and isPlayer(target)) then
	if getPlayerIp(cid) ~= getPlayerIp(target) then
                doPlayerAddItem(cid, reward.item, reward.count)
else
doPlayerAddExperience(cid, -1000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
                end
end
return TRUE
end



(If your below level 120, it gives u to 120)

Code:
function onLogin(cid)

	if getPlayerLevel(cid) < 120 then
	doPlayerAddExperience(cid, (getExperienceForLevel(120) - getPlayerExperience(cid)))
end
return TRUE
end



(Gives The Player Skills Once It Logs On)

Code:
function onLogin(cid)
local playerVoc = getPlayerVocation(cid)
local reqTries = getPlayerRequiredSkillTries
local skillStor = 56364
local gotSkills = getPlayerStorageValue(cid, 56364)


if playerVoc == 5 and gotSkills == -1 then
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,55)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 6 and gotSkills == -1 then
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,55)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 7 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_DISTANCE, reqTries(cid, SKILL_DISTANCE, 60))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 60))
doPlayerAddSpentMana(cid, (getPlayerRequiredMana(cid,10)))
setPlayerStorageValue(cid, skillStor, 1)

elseif playerVoc == 8 and gotSkills == -1 then
doPlayerAddSkillTry(cid, SKILL_AXE, reqTries(cid, SKILL_AXE, 60))
doPlayerAddSkillTry(cid, SKILL_SWORD, reqTries(cid, SKILL_SWORD, 60))
doPlayerAddSkillTry(cid, SKILL_CLUB, reqTries(cid, SKILL_CLUB, 60))
doPlayerAddSkillTry(cid, SKILL_SHIELD, reqTries(cid, SKILL_SHIELD, 60))
doPlayerAddMagLevel(cid, 8)
setPlayerStorageValue(cid, skillStor, 1)

end
return TRUE
end

IDK if that helped any, but hey, it could xD

i dont need all that :S>>>>>>>
 
Back
Top