• 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 [Advanced] Rune(s) System

Status
Not open for further replies.
@Up

Already translated (Not on script, only at reply)

Look:

Lua:
  -- [4040] = Switch ActionID
-- Item = Item that will fill the backpack
-- TotalCost = Cost of BP with items
-- Charges = Charges of runes (if in backpack, so, if you're going to put some equipment,etc.. put 1)
 
Fixed script tested on Crying Damson 0.3.4 PL2

CONFIG
Lua:
-- [4040] = Switch ActionID
-- Item = Item that will fill the backpack
-- TotalCost = Cost of BP with items
-- Charges = Charges of runes (if in backpack, so, if you're going to put some equipment,etc.. put 1)

TO ADD AN SWITCH ONLY ADD ON:
Lua:
local palancas

Lua:
[SWITCH ACTIONID] = {item = ID OF ITEM IN BACKPACK, totalcost = COST OF BP WITH ITEMS, charges = Charges of runes (if in backpack, so, if you're going to put some equipment,etc.. put 1)},
Lua:
-- Sistema Perfeccionado de Compra de Items por BP
-- Made By AndresPro abbysteam.com)
-- Visitanos : abbysteam.com/opentibia
 
function onUse(cid, item, frompos, item2, topos)
-- Configuracion
local palancas = {
[2800] = {item = 2273, totalcost = 3020, charges = 1},
}
-- [4040] = Es el actionid del item
-- Item = es el ID del item que se dara al usar la palanca
-- TotalCost = es el precio por toda la bp
-- Charges = son las cargas que se daran para cada item
 
    if palancas[item.actionid] then
	local cosas = palancas[item.actionid]
	if getPlayerMoney(cid) >= cosas.totalcost then
	doPlayerRemoveMoney(cid, cosas.totalcost)
		doCreatureSay(cid, "CONGRATULATIONS! You bought a backpack with some items. ", TALKTYPE_ORANGE_1)
	local labp = doPlayerAddItem(cid, 2002)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	doAddContainerItem(labp, cosas.item, cosas.charges)
	else
	doCreatureSay(cid, "You don't have money to buy. Required: ".. cosas.totalcost.." gold coins. ", TALKTYPE_ORANGE_1)
	end
	end
	return 1
	end

Please do not try to fix my script's,
if they don't work, I will fix them as soon as my comp. gets back.
 
Fixed script for tfs 3.5 should be very usefull, coz i cant find that script nowhere:huh:
 
Not Tested

Script Updated: 0.3.5
(I changed a lot) :thumbup:
 
Isn't work,
shoppingcartfaggiov3.jpg
 
@Up,
Try the script now.
 
JDB. you're using variables before these are defined, it's bug cause item.uid is after function onUse and you have used this before function.
 
Sadza, try it now.
 
Last edited:
Now it works but i have errors in console
shoppingcartfaggiov3.jpg
 
Last edited:
Try it now...
I really need my computer back from DELL...
all these problem's could be solved before starting thread.
 
Last edited:
Has anyone tried this since I updated it?
 
I will fix it as soon as I get my comp back.
 
This is my thread,
Don't post your script's here.
 
JDB (i don't know how did u deleted it, but nevermind)!

i just upgraded ur script. what is wrong with it? To fix your bug? and Show you another ways to make something? You should respect that, not be offense to someone who is helping you. lol.

Anyway. GutBye

//QuaS
 
@quas:
These all 'scripters' thinks they're the best and we can't fix their scripts ;<
 
@quas:
These all 'scripters' thinks they're the best and we can't fix their scripts ;<

I know for a fact that I am not the best.
And I consider myself an 'intermediate' scripter, nothing amazing.

And I have not been able to test anything.
I stated many times, that I will fix these once my computer is back.
Thanks for the help, but I don't need it.

What I need is my computer back :confused:
 
My 90%'s scripts are untested, just writing in MS Notepad and pasting in forum, and works! :D
 
@Up,
Yes, I do that a lot but they don't always work.
Then I have trouble with people asking about it.

It is easier to test & release.
 
Status
Not open for further replies.
Back
Top