Ti-am creat un quest(mai bine zis am editat pe cel existent), pentru modare iteme.
Asa cum ai cerut , apare ca un panou/letter, in partea stanga.
Se activeaza cu parola(aceasta fiind mutantj4m, si pe care o poti schimba)
Nu creeaza fisier log.txt, insa l-am facut sa poata fi folosit numai de acei gm,
carora le specifici numele.(M-am gandit ca il vrei pentru cineva de incredere).
Sfatul meu ar fi sa il salvezi .lua(asa a fost lucrat/editat)
Totusi va trebui sa ai la indemana, lista bonusurilor, codurile de pietre,
si bineinteles, id-ul playerului caruia i se modeaza item.
Cod: Selectaţi tot
-------------------------------------------
----- Quest Modare item --------
----- Edit Mutant pentru j4m (t4zu) --------
----- 07.05.2017 ora 4:20 /Esp --------
-------------------------------------------
quest modare_item begin
state start begin
when login with pc.is_gm() and pc.get_name() == "[GM]Mutant" or pc.get_name() == "[xx]xxx" or pc.get_name() == "[xx]xxx" begin
send_letter("Panou ADMIN")
end
when button or info begin
say_title("Iteme mod:")
say_gm ( "Parola:[ENTER]" )
local password = input()
if password != "mutantj4m" then
say("Nu ai introdus parola, sau aceasta este gresita!")
return
elseif password == "mutantj4m" then
say_gm_title( "Panou modare item" )
--- l
say("Cu acest panou poti creea iteme")
say("mod.")
say("")
say("Nu abuzati de el !")
say("Pot aparea buguri!")
say("")
local s = select("O sa creez modul", "Inchide")
if s==2 then
return
else
say("Introdu ID-ul playerului:")
local id = tonumber(input())
say("Introdu id-ul item-ului:")
local item = tonumber(input())
mysql_query("INSERT INTO player.item (owner_id, window, pos, count, vnum) VALUES ('".. id .."', 'MALL', '34', '1', '".. item .."')");
say("Introdu prima piatra:")
local p1 = tonumber(input())
mysql_query("UPDATE player.item SET socket0='".. p1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Introdu a doua piatra:")
local p2 = tonumber(input())
mysql_query("UPDATE player.item SET socket1='".. p2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Introdu a treia piatra:")
local p3 = tonumber(input())
mysql_query("UPDATE player.item SET socket2='".. p3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Introdu id-ul primului bonus:")
local b1 = tonumber(input())
mysql_query("UPDATE player.item SET attrtype0='".. b1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Cat sa contina primul bonus?")
local vb1 = tonumber(input())
mysql_query("UPDATE player.item SET attrvalue0='".. vb1 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Introdu id-ul bonusului 2:")
local b2 = tonumber(input())
mysql_query("UPDATE player.item SET attrtype1='".. b2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Cat sa contina bonusul 2?")
local vb2 = tonumber(input())
mysql_query("UPDATE player.item SET attrvalue1='".. vb2 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Introdu id-ul bonusului 3:")
local b3 = tonumber(input())
mysql_query("UPDATE player.item SET attrtype2='".. b3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Cat sa contina bonusul 3?")
local vb3 = tonumber(input())
mysql_query("UPDATE player.item SET attrvalue2='".. vb3 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Introdu id-ul bonusului 4:")
local b4 = tonumber(input())
mysql_query("UPDATE player.item SET attrtype3='".. b4 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Cat sa contina bonusul 4?")
local vb4 = tonumber(input())
mysql_query("UPDATE player.item SET attrvalue3='".. vb4 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Introdu id-ul bonusului 5:")
local b5 = tonumber(input())
mysql_query("UPDATE player.item SET attrtype4='".. b5 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Cat sa contina bonusul 5?")
local vb5 = tonumber(input())
mysql_query("UPDATE player.item SET attrvalue4='".. vb5 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Introdu id-ul bonusului 6:")
local b6 = tonumber(input())
mysql_query("UPDATE player.item SET attrtype5='".. b6 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Cat sa contina bonusul 6?")
local vb6 = tonumber(input())
mysql_query("UPDATE player.item SET attrvalue5='".. vb6 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Introdu id-ul bonusului 7:")
local b7 = tonumber(input())
mysql_query("UPDATE player.item SET attrtype6='".. b7 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
say("Cat sa contina bonusul 7?")
local vb7 = tonumber(input())
mysql_query("UPDATE player.item SET attrvalue6='".. vb7 .."' WHERE (owner_id='".. id .."' and window='MALL' and pos=34 and count=1)");
end
say_title("Item mod:")
say("")
--- l
say("Item-ul a fost creeat cu succes !")
say("Uitate in item shop !.")
say("")
say("")
syschat("Uitate in item_shop dupa itemul mod.")
end
end
end
end --quest
Sper sa fie ceea ce voiai tu , si ca te-am ajutat.