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

Action Da F**king best quest system ever

Status
Not open for further replies.

Fallen

Freelancer
Senator
Joined
Aug 21, 2009
Messages
3,712
Reaction score
249
Location
Egypt
i dont know if some1 posted this before w/e here it is ALL In one mang.
/actions/scripts/all in one.lua add:
Lua:
function onUse(cid, item, frompos, item2, topos)
local t = {
	[5000] = {itemId = 5000, storage = 5000, msg = "You have found an item!"},
	[5001] = {itemId = 5001, storage = 5001, msg = "You have found a weapon!"},
	[5002] = {itemId = 5002, storage = 5002, msg = "You have found a shield!"},
	[5003] = {itemId = 5003, storage = 5003, msg = "You have found a ring!"},
	[5004] = {itemId = 5004, storage = 5004, msg = "You have found a helmet!"},
	[5005] = {itemId = 5005, storage = 5005, msg = "You have found a necklace!"},
	[5006] = {itemId = 5006, storage = 5006, msg = "You have found a quest!"}
}
	local v, storage = t[item.actionid], getPlayerStorageValue(cid, v.storage)
	if v and storage == -1 then
		doPlayerAddItem(cid, t.itemId, 1)
		doPlayerSendTextMessage(cid, 22, v.msg)
		setPlayerStorageValue(cid, v.storage, 1)
	else
		doPlayerSendCancel(cid, "It is empty.")
	end
return true
end
xml part:
Code:
	<action actionid="5000-5006" script="all in one.lua"/>
:peace:
 
Last edited:
Nemaneth's one is the best. ,,l,,
 
Not the "fucking best" system-.-
If you want that it's used you should spend more than 5 or less minutes, even if TFS has a much better system.
You can't even get multiple items..
 
Not the "fucking best" system-.-
If you want that it's used you should spend more than 5 or less minutes, even if TFS has a much better system.
You can't even get multiple items..

haaaaaaa?
use the brain bud
 
What you mean dude?
 
I mean its not hard to add to the table w/e u want (multiple items) etc..
 
I know -.-
It's work of like 30 secs, but if you say it is the fucking best system that should be included so you should use your brain when chosing the title..

Code:
items = {{2222,1},{2223,1}}
...
...
for i = 1,#t[item.actionid].items do
doPlayerAddItem(cid,t[item.actionid].items[i][1],t[item.actionid].items[i][2])
end

Anyway how should that work?
doPlayerAddItem(cid, t.itemId, 1)
The array has no index? Maybe t[item.actionid].itemId
 
Status
Not open for further replies.
Back
Top