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

[Help] I need these three scripts. [Help]

SpookieGamer

!@Too Spooky 4 You@!
Joined
Mar 25, 2013
Messages
563
Solutions
1
Reaction score
155
Hello Otland Community.
Im looking for these two scripts:

1st. I need a script that gives level to any monster lets say;

You see a Rotworm[Lvl. 1].

This rotworm will have all the characteristics that a normal rotworm has, but If you see a Rotworm level 2, It will have a 10% increase on everything.

By everything I mean: Attack + 10%, Defence + 10%, Speed + 10%, loot + 10%, ........................., Exp + 10%.


2nd. The other script that I need is the script that nowadays the RPG oriented servers have:

This script should do the following:

When you kill a monster you have the chance that the monster will drop an item that has +attributes.
And if the monster do drops a rare item, an effect will appear on the monster corpse. Lets say a fireworks effect.

Example:

You see a sword (atk: 14 def:10)<<<------- just an example... ;)

Then when the monster dies you have the chance that it will drop this
You see a sword(atk: 14 def: 10, attributes: attack + 50%, def + 10%) Something like this ;)

3rd. These Script will be a method of transportation.

So, what I need is this:
Lets say that a player is really far from the city, so he uses !tp nameOfcity, and he will be teleported where he wants to go.

But theres a catch on this, it will only teleport the player if the player has walked through a tile that will let them go there,
so if the player hasn't walked through the tile he/she wont be able to teleport there and a message will appear telling them that they cant go there yet.



Well, I hope you guys can help me, so thanks for your time.
 
third script


Lua:
local can_tp_pos = {
[1] = {x = 1000, y = 1000, z = 7}
}

local teleport_pos = {
[1] = {x = 1000, y = 1000, z = 7}
}

local town_names = {
[town1]
}

function onSay(cid, words, param, channel)
if (param == "") then
doPlayerSendCancel(cid, "Command requires param.")
end

t = string.explode(message.lower(param), ",")

t[1] = position

if (position == false) then
	doPlayerSendCancel(cid, "You must type a position you want to teleport to.")
else
	if (position == town_names[town1]) then
		if not (getPlayerPosition(cid) == can_tp_pos[1]) then
			doPlayerSendCancel(cid, "You must be standing in the right spot.")
			return false
		else
			doTeleportThing(cid, teleport_pos[1])
			sendMagicEffect(getPlayerPosition(cid), 22)
		end
	elseif
	end
end
end
 
third script


Lua:
local can_tp_pos = {
[1] = {x = 1000, y = 1000, z = 7}
}

local teleport_pos = {
[1] = {x = 1000, y = 1000, z = 7}
}

local town_names = {
[town1]
}

function onSay(cid, words, param, channel)
if (param == "") then
doPlayerSendCancel(cid, "Command requires param.")
end

t = string.explode(message.lower(param), ",")

t[1] = position

if (position == false) then
    doPlayerSendCancel(cid, "You must type a position you want to teleport to.")
else
    if (position == town_names[town1]) then
        if not (getPlayerPosition(cid) == can_tp_pos[1]) then
            doPlayerSendCancel(cid, "You must be standing in the right spot.")
            return false
        else
            doTeleportThing(cid, teleport_pos[1])
            sendMagicEffect(getPlayerPosition(cid), 22)
        end
    elseif
    end
end
end

thats not what he want
 
Back
Top