*Problemă: Nu se blocheaza negot intre player si GM
Tipologie server: Pvm - PvP esay
*Resursă folosită: 40k
*ServerFiles utilizat: propiu
*Syserr: fara
Poză: -
*Detalii suplimentare:
Am incercat sa-l fac eu , dar nu reusesc sa-i dau de cap
Sa arunc iteme pe jos nu ma lasa , iar daca trag un item din inventar pe player nu ma lasa sa negociez
Dar daca dau negociaza de pe bara de sus , ma lasa sa negociez cu contul de GM
Exista o rezolvare , sau nu am facut eu ceva bine ?
Folosesc acest sistem .
http://just4metin.ro/ghiduri-tutoriale/ ... 10022.html
Blocare Negot GM & player
- M2-Effect
-

- Mesaje: 168
- Membru din: 12 Dec 2017, 17:40
- Server: www.metin2xtime.ro
- Regat: Jinno
- Aprecieri: 4
- Mulţumiri: 188
- Contact:
- M2-Effect
-

- Mesaje: 168
- Membru din: 12 Dec 2017, 17:40
- Server: www.metin2xtime.ro
- Regat: Jinno
- Aprecieri: 4
- Mulţumiri: 188
- Contact:
up !
- M2-Effect
-

- Mesaje: 168
- Membru din: 12 Dec 2017, 17:40
- Server: www.metin2xtime.ro
- Regat: Jinno
- Aprecieri: 4
- Mulţumiri: 188
- Contact:
40koneX scrie:Ce versiune de game folosesti?
[ Postat de pe Android ]
- Athero
-

- Mesaje: 3936
- Membru din: 17 Aug 2017, 00:08
- Aprecieri: 559
- Mulţumiri: 7142
- Discord: Copiază ID
Calea mai simplă a unei chestii de genul este să bagi ăsta http://just4metin.ro/sursa/informatii-n ... 39254.html îţi dă pe chat cu cine negociezi şi în acelaşi timp dacă faci tutorialul complet o să vezi că blochează negoţul între STAFF - Player.
- M2-Effect
-

- Mesaje: 168
- Membru din: 12 Dec 2017, 17:40
- Server: www.metin2xtime.ro
- Regat: Jinno
- Aprecieri: 4
- Mulţumiri: 188
- Contact:
O sa-l incerc si asta sa-l fac , dar sunt convins cam 90% ca nu o sa mearga.Athero scrie:Calea mai simplă a unei chestii de genul este să bagi ăsta http://just4metin.ro/sursa/informatii-n ... 39254.html îţi dă pe chat cu cine negociezi şi în acelaşi timp dacă faci tutorialul complet o să vezi că blochează negoţul între STAFF - Player.
Pentru ca Chitra el doar le traduce de pe Turkmmo si alte forumuri expresive , si isi adauga numele lui in ele si spune ca sunt facute de el .
Nici o data nu a stiut sa faca ceva de la A la Z el singur .
Il cunosc , i-am dat sa faca un sistem, defapt aveam o erroare , si l-am rugat sa se uite , ce sa vezi ca el si-a bagat numle in scripturile mele , si zice ca nu l-am facut eu bine , a lucrat 1 zi intreaga si nu a facut nimic , si eu dupa ce mi-am dat seama ce am gresit , l-am terminat in 10 minute .
Dar totui il incerc , poate o sa fie ceva de capul lui acestui sistem .
Pentru a bloca negotul itemelor:
Prima data trebuie instalat questul lasat de mine:
quest stash begin
state start begin
when 9005.click begin
if pc.is_gm() then
return
end
local l = game.get_safebox_level()
--syschat(l) -- for debug
if l == 0 then
say("Doriti sa creati un depozit ?")
if pc.gold < 500 then
say("Nu ai suficient Yang, ai nevoie de 500.")
else
local s = select("Da", "Nu")
if s == 1 then
--stash.setlevel(1)
pc.changegold(-500)
game.set_safebox_level(1)
say("Pentru a crea un depozit, trebuie sa platesti 500 Yang.")
else
say("--- COD ---")
end
end
elseif l == 1 then
say("Bine ati venit!")
if pc.getqf("open_count") < 3 then
say("Bine ati venit!")
pc.setqf("open_count",pc.getqf("open_count")+1)
end
local s = select("Depozit", "Barren", "Itemshop", "Inchide")
if s == 1 then
game.open_safebox()
elseif s == 2 then
-- ?? ?? ??? ?? ??,?? ????
if pc.getqf("gold_bar_say_count") < 3 then
pc.setqf("gold_bar_say_count",pc.getqf("gold_bar_say_count")+1)
wait()
end
npc.open_shop()
say("Hmmm....")
say("Rezervele noastre de aur sunt foarte rare...")
say("Dar cu toate acestea, eu le ofer la un pret corect!")
say("Sper că vei profita de oferta mea!!")
say("Ei bine ... uite asta-i magazinul meu!")
say("")
q.done()
elseif s == 3 then
game.open_mall()
end
elseif l == 2 then
say("Bine ai venit [3]")
local f = pc.getqf("recommendation")
local s = 0
if f <= 1 then
s = select("Test", "Depozit", "Barren", "Itemshop Depozit", "Inchide")
elseif f == 2 then
s = select("Nu platesc!", "Depozit", "Barren", "Itemshop Depozit", "Inchide")
elseif f == 3 then
s = select("Platesc", "Depozit", "Barren", "Itemshop Depozit", "Inchide")
end
if s == 1 then
if f == 1 then
say("AGAIN")
q.set_title(locale.stash.enlarge_2_title)
if pc.countitem(locale.stash.enlarge_2_item) < 1 then
pc.give_item2(locale.stash.enlarge_2_item)
end
elseif f == 2 then
say("KEIN GELD")
pc.setqf("recommendation", 0)
q.done()
elseif f == 3 then
-- ??? ??? ?? ??
if pc.countitem(locale.stash.enlarge_2_mark_item) == 0 then
say("SIE HABEN YANG! 2")
q.set_title(locale.stash.enlarge_2_title)
q.start()
pc.setqf("recommendation", 1)
else
say("SIE HABEN YANG! 3")
game.set_safebox_level(3)
pc.removeitem(locale.stash.enlarge_2_mark_item)
q.done()
end
else
say(locale.stash.enlarge_2_msg1,pc.name,math.mod(pc.job,2)==0 and locale.man_postfix or locale.woman_postfix,locale.stash.enlarge_2_msg2)
if pc.countitem(locale.stash.enlarge_2_item)<1 then
pc.give_item2(locale.stash.enlarge_2_item)
end
pc.setqf("recommendation",1)
q.set_title(locale.stash.enlarge_2_title)
q.start()
end
elseif s == 2 then
game.open_safebox()
elseif s == 3 then
--npc.open_shop()
-- ?? ??? ?? ?? ??
say("Aici este al nostru:")
say("Itemshop")
say("Sperăm că veți găsi aici multe lucruri interesante!")
say("Desigur, va trebui să le cumpere din magazin Item-Shop!")
say("Și acest lucru il vei găsi, atunci aici!")
say("")
q.done()
elseif s == 4 then
game.open_mall()
end
elseif l == 3 then
say("Bine ai venit!")
local s = select("Depozit", "Barrem", "Itemshop", "Inchide")
if s == 1 then
game.open_safebox()
elseif s == 2 then
npc.open_shop()
-- ?? ??? ?? ?? ??
say("Aici este al nostru:")
say("Itemshop")
say("Sperăm că veți găsi aici multe lucruri interesante!")
say("Desigur, va trebui să le cumpere din magazin Item-Shop!")
say("Și acest lucru il vei găsi, atunci aici!")
say("")
q.done()
elseif s == 3 then
game.open_mall()
end
--local s = select("spatiu marit 3", "Depozit", "Itemshop", "Inchide")
--if s == 1 then
-- say("Vrei sa intri ?")
-- local s = select("DA", "NU")
-- if s == 1 then
-- say(locale.stash.enlarge_try_ok_answer)
-- setstate("enlarge_3")
-- pc.setqf("3_left_time", 30*60)
-- loop_timer("enlarge_3_kill_esoteric",3)
-- pc.setqf("3_left_count",100)
-- q.set_title(locale.stash.enlarge_3_title)
-- q.set_counter_name(locale.stash.enlarge_3_counter)
-- q.set_counter_value(100)
-- q.set_clock_name(locale.stash.enlarge_3_timer)
-- q.set_clock_value(30 * 60)
-- q.start()
-- else
-- say("Kein Gebrauch!")
-- end
--elseif s == 2 then
-- game.open_safebox()
--end
elseif l >= 3 then
say("Bine ai venit !")
local s = select("Depozit", "Steril", "Itemshop", "Inchide")
if s == 1 then
game.open_safebox()
elseif s == 2 then
npc.open_shop()
-- ?? ??? ?? ?? ??
say("Aici este al nostru:")
say("Itemshop")
say("Sperăm că veți găsi aici multe lucruri interesante!")
say("Desigur, va trebui să le cumpere din magazin Item-Shop!")
say("Și acest lucru il vei găsi, atunci aici!")
say("")
q.done()
elseif s == 3 then
game.open_mall()
end
end
end
when oldwoman.chat.locale.stash.enlarge_2_recommendation with pc.getf("stash","recommendation") == 1 begin
say(locale.stash.enlarge_2_oldwoman_greet)
say(delay(400), ". . . [/DELAY]")
if pc.level < 25 then
-- ??? 25?? ??? ?????? ?? ???.
say(locale.stash.enlarge_2_oldwoman_reject)
pc.setqf("recommendation", 2)
q.set_title(locale.stash.enlarge_2_oldwoman_title1)
else
-- ?????? ??.. ?????? ??? ?? ?.
say(locale.stash.enlarge_2_oldwoman_accept)
pc.setqf("recommendation", 3)
pc.give_item2(locale.stash.enlarge_2_mark_item)
q.set_title(locale.stash.enlarge_2_oldwoman_title2)
end
pc.removeitem(locale.stash.enlarge_2_item)
end
end
state enlarge_stash1 begin
when info begin
setskin(SCROLL)
setbgimage("level_bg.tga")
addimage(20,12,special.levelup_quest[8][4])
setcolor(0,0,0)
say(locale.stash.enlarge_1_info1,item_name(pc.job<3 and locale.stash.enlarge_item1 or locale.stash.enlarge_item2),locale.stash.enlarge_1_info2)
if pc.get_map_index() > 0 and pc.get_map_index() <= table.getn(special.lvq_map) then
for j,i in {8,9,10,11,17} begin
table.foreachi(
special.lvq_map[pc.get_map_index()],
function (n,p) addmapsignal(p[1]*100, p[2]*100) end
)
end
setmapcenterposition(200, 0)
end
select(locale.confirm)
clearmapsignal()
setskin(NOWINDOW)
end
when warehouse_keeper.click begin
say("Bine ați venit la mine!")
local s = select(locale.stash.enlarge_1_take_bear,"Depozit", "Itemshop Depozit", "Inchide");
if s == 1 then
-- ????? ???? ??
if pc.countitem(locale.stash.enlarge_1_item)>=30 then
say(locale.stash.enlarge_1_success)
pc.removeitem(locale.stash.enlarge_1_item,30)
game.set_safebox_level(2)
setstate(start)
q.done()
cleartimer("enlarge_1_kill_bear")
else
say(locale.stash.enlarge_1_notyet)
end
elseif s == 2 then
game.open_safebox()
elseif s == 3 then
game.open_mall()
end
end
when kill begin
if npc.race >= 112 and npc.race <= 116 and -- ?????
(pc.weapon == 50 or pc.weapon == 5030) then
if math.random(5) == 1 then
-- ?? ??!
syschat(locale.stash.enlarge_1_getone)
pc.give_item2(locale.stash.enlarge_1_item)
if pc.countitem(locale.stash.enlarge_1_item) == 30 then
q.set_counter_value(0)
chat(pc.name,locale.stash.enlarge_1_complete)
elseif pc.countitem(locale.stash.enlarge_1_item) < 30 then
q.set_counter_value(30 - pc.countitem(locale.stash.enlarge_1_item))
end
end
end
end
when enlarge_1_kill_bear.timer begin
setstate(enlarge_1_fail)
end
when login begin
if game.get_safebox_level() == 1 then
setstate(enlarge_1_fail)
else
setstate(start)
end
end
end
state enlarge_1_fail begin
when info begin
say(locale.stash.enlarge_1_fail_info)
end
when warehouse_keeper.click begin
say(locale.stash.enlarge_1_fail_ms)
q.done()
setstate("start")
end
end
state enlarge_3 begin
when info begin
end
when warehouse_keeper.click begin
say("Bine ai venit, aventurierule!")
local s = select(locale.stash.enlarge_3_complete, "Depozit", "Item Shop", "Inchide")
if s == 1 then
-- ????? ???? ??
if pc.getqf("3_left_count")<=0 then
say(locale.stash.enlarge_3_success)
game.set_safebox_level(4)
setstate(start)
q.done()
cleartimer("enlarge_3_kill_esoteric")
else
say(locale.stash.enlarge_3_notyet)
end
elseif s == 2 then
game.open_safebox()
elseif s == 3 then
game.open_mall()
end
end
when kill begin
if npc.race >= 601 and npc.race <= 609 then-- ??????
local n = pc.getqf("3_left_count")-1
pc.setqf("3_left_count",n)
q.set_counter_name(locale.stash.enlarge_3_counter)
q.set_counter_value(n)
end
end
when enlarge_3_kill_esoteric.timer begin
local t = pc.getqf("3_left_time")
if t <= 0 then
setstate(enlarge_3_fail)
cleartimer("enlarge_3_kill_esoteric")
else
pc.setqf("3_left_time",t-3);
end
end
when login begin
local t = pc.getqf("3_left_time")
if t <= 0 then
setstate(enlarge_3_fail)
else
loop_timer("enlarge_3_kill_esoteric",3)
q.set_counter_name(locale.stash.enlarge_3_counter)
q.set_counter_value(pc.getqf("3_left_count"))
q.set_clock_name(locale.stash.enlarge_3_timer)
q.set_clock_value(t)
q.start()
end
end
end
state enlarge_3_fail begin
when warehouse_keeper.click begin
say(locale.stash.enlarge_1_fail_msg)
q.done()
setstate("start")
end
end
deschidem fisierul game.py din root unde cautam linia :
def __PutItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, dstChrID):
dedesubt adaugam:
[2xTab]# GM_DISABLE_ITEM_SEND
[2xTab]char = player.GetMainCharacterName()
[2xTab]GMMark= "["
[2xTab]if char >= GMMark:
[3xTab]chat.AppendChat(chat.CHAT_TYPE_INFO, locale.SEND_ITEM_FAILURE_GM)
[3xTab]return
[2xTab]# END_OF_GM_DISABLE_ITEM_SEND
Salvam si despachetam locale_ro
dupa care deschidem locale_game.txt in care adaugam :
SEND_ITEM_FAILURE_GM Negotul cu alti jucatori a fost restrictionat.
Pentru a bloca aruncarea itemelor:
Deschidem fisierul game.py din root
Dupa deschidere cautam linia :
def __SendDropItemPacket(self, itemVNum, itemCount):
Unde adaugam :
[2XTab]# GM_DISABLE_ITEM_DROP
[2XTab]char = player.GetMainCharacterName()
[2XTab]GMMark= "["
[2XTab]if char >= GMMark:
[3XTab]chat.AppendChat(chat.CHAT_TYPE_INFO, locale.DROP_ITEM_FAILURE_GM)
[3XTab]return
[2XTab]# END_OF_GM_DISABLE_ITEM_DROP
Acum salvam si despachetam locale_ro
dupa care deschidem locale_game.txt in care adaugam :
DROP_ITEM_FAILURE_GM Aruncarea de iteme a fost restrictionata.
Atentie!
Unde am scris [2xTab] [3xTab] folositi tasta Tab ,a tastaturii pc-ului d-voastra,de cate ori arata cifra [2],[3] !
Succes !
Prima data trebuie instalat questul lasat de mine:
quest stash begin
state start begin
when 9005.click begin
if pc.is_gm() then
return
end
local l = game.get_safebox_level()
--syschat(l) -- for debug
if l == 0 then
say("Doriti sa creati un depozit ?")
if pc.gold < 500 then
say("Nu ai suficient Yang, ai nevoie de 500.")
else
local s = select("Da", "Nu")
if s == 1 then
--stash.setlevel(1)
pc.changegold(-500)
game.set_safebox_level(1)
say("Pentru a crea un depozit, trebuie sa platesti 500 Yang.")
else
say("--- COD ---")
end
end
elseif l == 1 then
say("Bine ati venit!")
if pc.getqf("open_count") < 3 then
say("Bine ati venit!")
pc.setqf("open_count",pc.getqf("open_count")+1)
end
local s = select("Depozit", "Barren", "Itemshop", "Inchide")
if s == 1 then
game.open_safebox()
elseif s == 2 then
-- ?? ?? ??? ?? ??,?? ????
if pc.getqf("gold_bar_say_count") < 3 then
pc.setqf("gold_bar_say_count",pc.getqf("gold_bar_say_count")+1)
wait()
end
npc.open_shop()
say("Hmmm....")
say("Rezervele noastre de aur sunt foarte rare...")
say("Dar cu toate acestea, eu le ofer la un pret corect!")
say("Sper că vei profita de oferta mea!!")
say("Ei bine ... uite asta-i magazinul meu!")
say("")
q.done()
elseif s == 3 then
game.open_mall()
end
elseif l == 2 then
say("Bine ai venit [3]")
local f = pc.getqf("recommendation")
local s = 0
if f <= 1 then
s = select("Test", "Depozit", "Barren", "Itemshop Depozit", "Inchide")
elseif f == 2 then
s = select("Nu platesc!", "Depozit", "Barren", "Itemshop Depozit", "Inchide")
elseif f == 3 then
s = select("Platesc", "Depozit", "Barren", "Itemshop Depozit", "Inchide")
end
if s == 1 then
if f == 1 then
say("AGAIN")
q.set_title(locale.stash.enlarge_2_title)
if pc.countitem(locale.stash.enlarge_2_item) < 1 then
pc.give_item2(locale.stash.enlarge_2_item)
end
elseif f == 2 then
say("KEIN GELD")
pc.setqf("recommendation", 0)
q.done()
elseif f == 3 then
-- ??? ??? ?? ??
if pc.countitem(locale.stash.enlarge_2_mark_item) == 0 then
say("SIE HABEN YANG! 2")
q.set_title(locale.stash.enlarge_2_title)
q.start()
pc.setqf("recommendation", 1)
else
say("SIE HABEN YANG! 3")
game.set_safebox_level(3)
pc.removeitem(locale.stash.enlarge_2_mark_item)
q.done()
end
else
say(locale.stash.enlarge_2_msg1,pc.name,math.mod(pc.job,2)==0 and locale.man_postfix or locale.woman_postfix,locale.stash.enlarge_2_msg2)
if pc.countitem(locale.stash.enlarge_2_item)<1 then
pc.give_item2(locale.stash.enlarge_2_item)
end
pc.setqf("recommendation",1)
q.set_title(locale.stash.enlarge_2_title)
q.start()
end
elseif s == 2 then
game.open_safebox()
elseif s == 3 then
--npc.open_shop()
-- ?? ??? ?? ?? ??
say("Aici este al nostru:")
say("Itemshop")
say("Sperăm că veți găsi aici multe lucruri interesante!")
say("Desigur, va trebui să le cumpere din magazin Item-Shop!")
say("Și acest lucru il vei găsi, atunci aici!")
say("")
q.done()
elseif s == 4 then
game.open_mall()
end
elseif l == 3 then
say("Bine ai venit!")
local s = select("Depozit", "Barrem", "Itemshop", "Inchide")
if s == 1 then
game.open_safebox()
elseif s == 2 then
npc.open_shop()
-- ?? ??? ?? ?? ??
say("Aici este al nostru:")
say("Itemshop")
say("Sperăm că veți găsi aici multe lucruri interesante!")
say("Desigur, va trebui să le cumpere din magazin Item-Shop!")
say("Și acest lucru il vei găsi, atunci aici!")
say("")
q.done()
elseif s == 3 then
game.open_mall()
end
--local s = select("spatiu marit 3", "Depozit", "Itemshop", "Inchide")
--if s == 1 then
-- say("Vrei sa intri ?")
-- local s = select("DA", "NU")
-- if s == 1 then
-- say(locale.stash.enlarge_try_ok_answer)
-- setstate("enlarge_3")
-- pc.setqf("3_left_time", 30*60)
-- loop_timer("enlarge_3_kill_esoteric",3)
-- pc.setqf("3_left_count",100)
-- q.set_title(locale.stash.enlarge_3_title)
-- q.set_counter_name(locale.stash.enlarge_3_counter)
-- q.set_counter_value(100)
-- q.set_clock_name(locale.stash.enlarge_3_timer)
-- q.set_clock_value(30 * 60)
-- q.start()
-- else
-- say("Kein Gebrauch!")
-- end
--elseif s == 2 then
-- game.open_safebox()
--end
elseif l >= 3 then
say("Bine ai venit !")
local s = select("Depozit", "Steril", "Itemshop", "Inchide")
if s == 1 then
game.open_safebox()
elseif s == 2 then
npc.open_shop()
-- ?? ??? ?? ?? ??
say("Aici este al nostru:")
say("Itemshop")
say("Sperăm că veți găsi aici multe lucruri interesante!")
say("Desigur, va trebui să le cumpere din magazin Item-Shop!")
say("Și acest lucru il vei găsi, atunci aici!")
say("")
q.done()
elseif s == 3 then
game.open_mall()
end
end
end
when oldwoman.chat.locale.stash.enlarge_2_recommendation with pc.getf("stash","recommendation") == 1 begin
say(locale.stash.enlarge_2_oldwoman_greet)
say(delay(400), ". . . [/DELAY]")
if pc.level < 25 then
-- ??? 25?? ??? ?????? ?? ???.
say(locale.stash.enlarge_2_oldwoman_reject)
pc.setqf("recommendation", 2)
q.set_title(locale.stash.enlarge_2_oldwoman_title1)
else
-- ?????? ??.. ?????? ??? ?? ?.
say(locale.stash.enlarge_2_oldwoman_accept)
pc.setqf("recommendation", 3)
pc.give_item2(locale.stash.enlarge_2_mark_item)
q.set_title(locale.stash.enlarge_2_oldwoman_title2)
end
pc.removeitem(locale.stash.enlarge_2_item)
end
end
state enlarge_stash1 begin
when info begin
setskin(SCROLL)
setbgimage("level_bg.tga")
addimage(20,12,special.levelup_quest[8][4])
setcolor(0,0,0)
say(locale.stash.enlarge_1_info1,item_name(pc.job<3 and locale.stash.enlarge_item1 or locale.stash.enlarge_item2),locale.stash.enlarge_1_info2)
if pc.get_map_index() > 0 and pc.get_map_index() <= table.getn(special.lvq_map) then
for j,i in {8,9,10,11,17} begin
table.foreachi(
special.lvq_map[pc.get_map_index()],
function (n,p) addmapsignal(p[1]*100, p[2]*100) end
)
end
setmapcenterposition(200, 0)
end
select(locale.confirm)
clearmapsignal()
setskin(NOWINDOW)
end
when warehouse_keeper.click begin
say("Bine ați venit la mine!")
local s = select(locale.stash.enlarge_1_take_bear,"Depozit", "Itemshop Depozit", "Inchide");
if s == 1 then
-- ????? ???? ??
if pc.countitem(locale.stash.enlarge_1_item)>=30 then
say(locale.stash.enlarge_1_success)
pc.removeitem(locale.stash.enlarge_1_item,30)
game.set_safebox_level(2)
setstate(start)
q.done()
cleartimer("enlarge_1_kill_bear")
else
say(locale.stash.enlarge_1_notyet)
end
elseif s == 2 then
game.open_safebox()
elseif s == 3 then
game.open_mall()
end
end
when kill begin
if npc.race >= 112 and npc.race <= 116 and -- ?????
(pc.weapon == 50 or pc.weapon == 5030) then
if math.random(5) == 1 then
-- ?? ??!
syschat(locale.stash.enlarge_1_getone)
pc.give_item2(locale.stash.enlarge_1_item)
if pc.countitem(locale.stash.enlarge_1_item) == 30 then
q.set_counter_value(0)
chat(pc.name,locale.stash.enlarge_1_complete)
elseif pc.countitem(locale.stash.enlarge_1_item) < 30 then
q.set_counter_value(30 - pc.countitem(locale.stash.enlarge_1_item))
end
end
end
end
when enlarge_1_kill_bear.timer begin
setstate(enlarge_1_fail)
end
when login begin
if game.get_safebox_level() == 1 then
setstate(enlarge_1_fail)
else
setstate(start)
end
end
end
state enlarge_1_fail begin
when info begin
say(locale.stash.enlarge_1_fail_info)
end
when warehouse_keeper.click begin
say(locale.stash.enlarge_1_fail_ms)
q.done()
setstate("start")
end
end
state enlarge_3 begin
when info begin
end
when warehouse_keeper.click begin
say("Bine ai venit, aventurierule!")
local s = select(locale.stash.enlarge_3_complete, "Depozit", "Item Shop", "Inchide")
if s == 1 then
-- ????? ???? ??
if pc.getqf("3_left_count")<=0 then
say(locale.stash.enlarge_3_success)
game.set_safebox_level(4)
setstate(start)
q.done()
cleartimer("enlarge_3_kill_esoteric")
else
say(locale.stash.enlarge_3_notyet)
end
elseif s == 2 then
game.open_safebox()
elseif s == 3 then
game.open_mall()
end
end
when kill begin
if npc.race >= 601 and npc.race <= 609 then-- ??????
local n = pc.getqf("3_left_count")-1
pc.setqf("3_left_count",n)
q.set_counter_name(locale.stash.enlarge_3_counter)
q.set_counter_value(n)
end
end
when enlarge_3_kill_esoteric.timer begin
local t = pc.getqf("3_left_time")
if t <= 0 then
setstate(enlarge_3_fail)
cleartimer("enlarge_3_kill_esoteric")
else
pc.setqf("3_left_time",t-3);
end
end
when login begin
local t = pc.getqf("3_left_time")
if t <= 0 then
setstate(enlarge_3_fail)
else
loop_timer("enlarge_3_kill_esoteric",3)
q.set_counter_name(locale.stash.enlarge_3_counter)
q.set_counter_value(pc.getqf("3_left_count"))
q.set_clock_name(locale.stash.enlarge_3_timer)
q.set_clock_value(t)
q.start()
end
end
end
state enlarge_3_fail begin
when warehouse_keeper.click begin
say(locale.stash.enlarge_1_fail_msg)
q.done()
setstate("start")
end
end
deschidem fisierul game.py din root unde cautam linia :
def __PutItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, dstChrID):
dedesubt adaugam:
[2xTab]# GM_DISABLE_ITEM_SEND
[2xTab]char = player.GetMainCharacterName()
[2xTab]GMMark= "["
[2xTab]if char >= GMMark:
[3xTab]chat.AppendChat(chat.CHAT_TYPE_INFO, locale.SEND_ITEM_FAILURE_GM)
[3xTab]return
[2xTab]# END_OF_GM_DISABLE_ITEM_SEND
Salvam si despachetam locale_ro
dupa care deschidem locale_game.txt in care adaugam :
SEND_ITEM_FAILURE_GM Negotul cu alti jucatori a fost restrictionat.
Pentru a bloca aruncarea itemelor:
Deschidem fisierul game.py din root
Dupa deschidere cautam linia :
def __SendDropItemPacket(self, itemVNum, itemCount):
Unde adaugam :
[2XTab]# GM_DISABLE_ITEM_DROP
[2XTab]char = player.GetMainCharacterName()
[2XTab]GMMark= "["
[2XTab]if char >= GMMark:
[3XTab]chat.AppendChat(chat.CHAT_TYPE_INFO, locale.DROP_ITEM_FAILURE_GM)
[3XTab]return
[2XTab]# END_OF_GM_DISABLE_ITEM_DROP
Acum salvam si despachetam locale_ro
dupa care deschidem locale_game.txt in care adaugam :
DROP_ITEM_FAILURE_GM Aruncarea de iteme a fost restrictionata.
Atentie!
Unde am scris [2xTab] [3xTab] folositi tasta Tab ,a tastaturii pc-ului d-voastra,de cate ori arata cifra [2],[3] !
Succes !
- Athero
-

- Mesaje: 3936
- Membru din: 17 Aug 2017, 00:08
- Aprecieri: 559
- Mulţumiri: 7142
- Discord: Copiază ID
Functioneaza , e testat de mine deoarece si eu mi l.am pus pe serverM2-Effect scrie:O sa-l incerc si asta sa-l fac , dar sunt convins cam 90% ca nu o sa mearga.Athero scrie:Calea mai simplă a unei chestii de genul este să bagi ăsta http://just4metin.ro/sursa/informatii-n ... 39254.html îţi dă pe chat cu cine negociezi şi în acelaşi timp dacă faci tutorialul complet o să vezi că blochează negoţul între STAFF - Player.
Pentru ca Chitra el doar le traduce de pe Turkmmo si alte forumuri expresive , si isi adauga numele lui in ele si spune ca sunt facute de el .
Nici o data nu a stiut sa faca ceva de la A la Z el singur .
Il cunosc , i-am dat sa faca un sistem, defapt aveam o erroare , si l-am rugat sa se uite , ce sa vezi ca el si-a bagat numle in scripturile mele , si zice ca nu l-am facut eu bine , a lucrat 1 zi intreaga si nu a facut nimic , si eu dupa ce mi-am dat seama ce am gresit , l-am terminat in 10 minute .
Dar totui il incerc , poate o sa fie ceva de capul lui acestui sistem .
[ Postat de pe Android ]

- M2-Effect
-

- Mesaje: 168
- Membru din: 12 Dec 2017, 17:40
- Server: www.metin2xtime.ro
- Regat: Jinno
- Aprecieri: 4
- Mulţumiri: 188
- Contact:
Răspunsuri
2 Vizualizări
108
2 Vizualizări
108
Răspunsuri
32 Vizualizări
5047
32 Vizualizări
5047
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Google [Bot] și 21 vizitatori




