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

Otswe Free Scripting Service (Actions/Movements/Creaturescripts) Open Again!

Printer

if Printer then print("LUA") end
Senator
Premium User
Joined
Dec 27, 2009
Messages
5,782
Solutions
31
Reaction score
2,286
Location
Sweden?
Cyko Free Scripting Service (Actions/Movements/Creaturescripts/Talkactions) ReOpen!

Hello,

I decide to make scripts depending on players request.

Why im doing this?
Ticket to hevean? <- Also helping people and learn the lua language.
Please post below and i will hopefully be able to make the script you desire.

I repon Otswe Free Scripting Service, Ill only accept medium hard scripts. Follow these rules and we are good to go!

Rule number 1: No Spamming!
Rule number 2: Be Patient!
Rule number 3: There is no rule number 3!
Rule number 4: Follow all these rules!

Asfar you can see i accept only Actions/Movements/Creaturescripts/Talkactions/Globalevents! But ill accept npcs to, but depends how hard the request is.
My scripting Corner! Here you will be able to find scripts :D

My Scripts:
Need Special Storage To Enter The Platform!
Open Secret Hole - Timer!
Fire Explosion Into Area!
Remove Swarms From Magical Bushs!
Simple Upgrade Item!
Automatic Cleaning Spefic Area!
Magic Wall With Countdown!
Premium Scroll!
http://otland.net/f81/anti-lure-monster-v-1-otswe-171236/
http://otland.net/f81/advance-tutorial-hints-script-easy-configure-170739/
http://otland.net/f81/house-system-171153/
http://otland.net/f82/update-automatic-currently-health-mana-172129/
Check Points - Advanced!

Older Scripts:
Simple Premium Tile!
Exp Token!
Throw item get teleported!
 
Last edited:
@ADM LosT: sorry, my bad... Missing some parts of the script I dont know why...

But here it is repaired and working (tested):
Lua:
function onLook(cid, thing, position, lookDistance)
function getDeathsAndKills(cid, type) -- by vodka
    local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0
        if (query:getID() ~= -1) then 
            repeat
                d = d+1
            until not query:next()
            query:free()
        end
    return d  
end
if isPlayer(thing.uid) then
if cid ~= thing.uid then
doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Killed: ["..getDeathsAndKills(thing.uid, "kill").."] Players.\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Died: ["..getDeathsAndKills(thing.uid, "death").."] Times")
else
doPlayerSetSpecialDescription(cid, "\nYou have killed: ["..getDeathsAndKills(cid, "kill").."] Players.\nYou have died: ["..getDeathsAndKills(cid, "death").."] Times")
end
end
return true
end

@otswe: if you want to make posts with my scripts too, you have permission if you give some credits please... Thank you...
 
Im giving you permission to post the scripts Im posting here on a recopilation or any post you want to do in the future cause im never going to post them... xDDDDD

That's it... Sorry for bad english...
 
I can post them on the scripting corner. You wanna join the free service?
 
hey anyone can help me to fix this?

Lua:
local CHECKPOINT_STORAGE = {

	[10001] = {id = 1, name = "Temple"},
	[10002] = {id = 2, name = "Cave"},
	[10003] = {id = 3, name = "Mountain"}

}

function onSay(cid, words, param, channel)
doCreatureSetStorage(cid, 10001, 1)
doCreatureSetStorage(cid, 10002, 1)
doCreatureSetStorage(cid, 10003, 1)
unregisterCreatureEventType(cid, "channelrequest")

	local CHECKPOINT_LIST = {}
	for i = 0, #CHECKPOINT_STORAGE do
		local checkpoint = CHECKPOINT_STORAGE[getCreatureStorage(cid, i)]
		if(checkpoint > 0) then
			table.insert(CHECKPOINT_LIST, checkpoint.id, checkpoint.name)
		end
	end
		doPlayerSendChannels(cid, CHECKPOINT_LIST)
		registerCreatureEvent(cid, "checkpoint")
	return true
end

the error say:
Code:
[8/11/2012 19:17:21] [Error - TalkAction Interface] 
[8/11/2012 19:17:21] data/talkactions/scripts/checkpoint.lua:onSay
[8/11/2012 19:17:21] Description: 
[8/11/2012 19:17:21] data/talkactions/scripts/checkpoint.lua:14: attempt to compare number with nil
[8/11/2012 19:17:21] stack traceback:
[8/11/2012 19:17:21] 	data/talkactions/scripts/checkpoint.lua:14: in function <data/talkactions/scripts/checkpoint.lua:7>
 
@Dantrix What do you need help with xD?

@Exedion ill check on it after i sleep xD
 
@Exedion:

Lua:
local CHECKPOINT_STORAGE = {
 
	[10001] = {id = 1, name = "Temple"},
	[10002] = {id = 2, name = "Cave"},
	[10003] = {id = 3, name = "Mountain"}
 
}
 
function onSay(cid, words, param, channel)
doCreatureSetStorage(cid, 10001, 1)
doCreatureSetStorage(cid, 10002, 1)
doCreatureSetStorage(cid, 10003, 1)
unregisterCreatureEventType(cid, "channelrequest")
 
	local CHECKPOINT_LIST = {}
	for i = 1, #CHECKPOINT_STORAGE do
		local checkpoint = CHECKPOINT_STORAGE[i]
		if(checkpoint > 0) then
			table.insert(CHECKPOINT_LIST, checkpoint.id, checkpoint.name)
		end
	end
		doPlayerSendChannels(cid, CHECKPOINT_LIST)
		registerCreatureEvent(cid, "checkpoint")
	return true
end

Hope it works...

@otswe: im making a pet system...
 
@Exedion:

Lua:
local CHECKPOINT_STORAGE = {
 
	[10001] = {id = 1, name = "Temple"},
	[10002] = {id = 2, name = "Cave"},
	[10003] = {id = 3, name = "Mountain"}
 
}
 
function onSay(cid, words, param, channel)
doCreatureSetStorage(cid, 10001, 1)
doCreatureSetStorage(cid, 10002, 1)
doCreatureSetStorage(cid, 10003, 1)
unregisterCreatureEventType(cid, "channelrequest")
 
	local CHECKPOINT_LIST = {}
	for i = 1, #CHECKPOINT_STORAGE do
		local checkpoint = CHECKPOINT_STORAGE[i]
		if(checkpoint > 0) then
			table.insert(CHECKPOINT_LIST, checkpoint.id, checkpoint.name)
		end
	end
		doPlayerSendChannels(cid, CHECKPOINT_LIST)
		registerCreatureEvent(cid, "checkpoint")
	return true
end

Hope it works...

@otswe: im making a pet system...

thanks man, but dont work, in these script no compare storage with table value, and no insert values in table :(
 
Code:
local CHECKPOINT_STORAGE = {
 
	[10001] = {id = 1, name = "Temple"},
	[10002] = {id = 2, name = "Cave"},
	[10003] = {id = 3, name = "Mountain"}
 
}
 
function onSay(cid, words, param, channel)
doCreatureSetStorage(cid, 10001, 1)
doCreatureSetStorage(cid, 10002, 1)
doCreatureSetStorage(cid, 10003, 1)
unregisterCreatureEventType(cid, "channelrequest")
 
	local CHECKPOINT_LIST = {}
	for i = 1, #CHECKPOINT_STORAGE do
		local checkpoint = getCreatureStorageValue(cid, CHECKPOINT_STORAGE[i])
		if(checkpoint > 0) then
			table.insert(CHECKPOINT_LIST, checkpoint.id, checkpoint.name)
		end
	end
		doPlayerSendChannels(cid, CHECKPOINT_LIST)
		registerCreatureEvent(cid, "checkpoint")
	return true
end

My sorry man, this maybe works.. :S

If that doesnt, try this:
Lua:
local CHECKPOINT_STORAGE = {
 
	[10001] = {id = 1, name = "Temple"},
	[10002] = {id = 2, name = "Cave"},
	[10003] = {id = 3, name = "Mountain"}
 
}
 
function onSay(cid, words, param, channel)
doCreatureSetStorage(cid, 10001, 1)
doCreatureSetStorage(cid, 10002, 1)
doCreatureSetStorage(cid, 10003, 1)
unregisterCreatureEventType(cid, "channelrequest")
 
	local CHECKPOINT_LIST = {}
	for i = 1, #CHECKPOINT_STORAGE do
		local checkpoint = CHECKPOINT_STORAGE[getCreatureStorage(cid, i)]
		if(checkpoint > 0) then
			table.insert(CHECKPOINT_LIST, checkpoint.id, checkpoint.name)
		end
	end
		doPlayerSendChannels(cid, CHECKPOINT_LIST)
		registerCreatureEvent(cid, "checkpoint")
	return true
end
 
Here is my request, if you don't wish to do it, just say so.

I want a lives system.

It's pretty simple.

A character starts off at 5 lives max.

When the character dies, he loses a life.

When a character reaches 0 lives, the character is deleted completely.


Thats the basis of it.

Heres the more in depth info.

When a person logs in, it tells them how many lives they currently have out of their max.

A talkaction is needed to be able to check how many lifes you currently have.

An item that when you use it gives you a bonus life (+1life!)

An item/quests that give you extra max lives. (ie, you finish a quest line, and now you have a max of 6 lifes.)

An npc that daily gives players +1 life if they talk to them/preform a task for them.'


Just let me know if you are interested in making it
 
Back
Top Bottom