Iteme stakabile

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
gubigubi
Nivel 3

Nivel 3
Mesaje: 358
Membru din: 15 Iul 2014, 12:17
Aprecieri: 34  
Mulţumiri: 4  
Medalii

*Problemă: Am căutat pe forum, dar n-am găsit rezolvare la asta. Care-i problema... Am modificat drop-ul la quest-ul Alchimiei, mai exact la cioburi. Mie-mi picau pe jos cioburile și din *game.drop_item_with_ownership* am pus pc.give_item2. Bun, am rezolvat problema asta. Dar quest-ul are linia asta "pc.remove_item(30270, 10)" și problema e că cioburile nu se stachează în inventar și atunci nu poate "convertii" item-ul... P.S item-ul se stachează doar când este luat de jos... drag and drop din inventar nu merge.
Item_proto: 3027 0 1 NONE ITEM_STACKABLE NONE 0 0 0 0 0 REAL_TIME
Tipologie server:-
*Resursă folosită:-
*ServerFiles utilizat:-
*Syserr:-
Poză:-
*Detalii suplimentare: Aici este quest-ul:
quest dragon_soul begin
state start begin
when levelup or letter with pc.level >= 30 begin
send_letter(gameforge.dragon_soul._1010_sendLetter)
local v = find_npc_by_vnum(20001)

if 0 != v then
target.vid("__TARGET__", v, mob_name(20001))
end
end
when info or button begin
say(gameforge.dragon_soul._1020_say)
end

when 20001.chat.gameforge.dragon_soul._1030_npcChat with pc.level >= 30 begin
target.delete("__TARGET__")

say_title(mob_name(20001))
say(gameforge.dragon_soul._1040_say)
set_state(state_learning)
end
end
state state_learning begin
when letter begin
send_letter(gameforge.dragon_soul._1050_sendLetter)
end
when info or button begin
say(gameforge.dragon_soul._1060_say)
end
when kill begin
if npc.is_pc() then
return
end
------------
if pc.get_map_index() >= 2400000 and pc.get_map_index() <= 2405000 or pc.get_map_index() >= 2350000 and pc.get_map_index() <= 2355000 then
return
else
-----------------------
if pc.getf("dragon_soul","drop_on") == 1 then
if pc.count_item(30270) < 15 then
if drop_gamble_with_flag("ds_drop") then

pc.give_item2(30270,1)

end
end
end
-------------------------
end
------------
end
when 20001.chat.gameforge.dragon_soul._1050_sendLetter begin
say_title(mob_name(20001))
if pc.count_item(30270) >= 10 then
say(gameforge.dragon_soul._1070_say)
pc.remove_item(30270, 10)
ds.give_qualification()
char_log(pc.get_player_id(), 'DS_QUALIFICATION', 'SUCCESS')
pc.give_item2(50255)
local today = math.floor(get_global_time() / 86400)
pc.setf("dragon_soul", "eye_timestamp", today)
pc.setf("dragon_soul", "eye_left", 3)
set_state(state_farming)
else
say(gameforge.dragon_soul._1080_say)
end
end
end
state state_farming begin
when letter begin
send_letter(gameforge.dragon_soul._1090_sendLetter)
end
when info or button begin
say(string.format(gameforge.dragon_soul._1100_say, pc.getf("dragon_soul", "eye_left")))
end
when kill begin
if npc.is_pc() then
return
end
---------
if pc.get_map_index() >= 2400000 and pc.get_map_index() <= 2405000 or pc.get_map_index() >= 2350000 and pc.get_map_index() <= 2355000 then
return
else
------------------------------------
if pc.getf("dragon_soul","drop_on") == 1 then
if drop_gamble_with_flag("ds_drop") then
local eye_left = pc.getf("dragon_soul", "eye_left")
local haved_gemstone_number = pc.count_item(30270)

if eye_left > haved_gemstone_number / 10 then

pc.give_item2(30270,1)

end
end
end
----------------------------
end
-----------
end
when 30270.pick begin
local eye_left = pc.getf("dragon_soul", "eye_left")
if eye_left <= 0 then
return
end

if pc.count_item(30270) >= 10 then
pc.setf("dragon_soul", "eye_left", eye_left - 1)
pc.remove_item(30270, 10)
pc.give_item2(50255)
if 1 == eye_left then
notice_multiline(gameforge.dragon_soul._1110_notice, notice)
set_state(state_closed_season)
end
end
end
when 20001.chat.gameforge.dragon_soul._1120_npcChat begin
say_title(mob_name(20001))
local today = math.floor(get_global_time() / 86400)
if today == pc.getf("dragon_soul", "eye_timestamp") then
say(gameforge.dragon_soul._1130_say)
else
say(gameforge.dragon_soul._1140_say)
pc.setf("dragon_soul", "eye_timestamp", today)
pc.setf("dragon_soul", "eye_left", 3)
pc.setf("dragon_soul","drop_on",1)
end
end
end
state state_closed_season begin
when letter begin
send_letter(gameforge.dragon_soul._1150_sendLetter)
end
when info or button begin
say(gameforge.dragon_soul._1160_say)
local today = math.floor(get_global_time() / 86400)
if today == pc.getf("dragon_soul", "eye_timestamp") then
say(gameforge.dragon_soul._1170_say)
else
say(gameforge.dragon_soul._1180_say)
end
end

when 20001.chat.gameforge.dragon_soul._1090_sendLetter begin
say_title(mob_name(20001))
local today = math.floor(get_global_time() / 86400)
if today == pc.getf("dragon_soul", "eye_timestamp") then
say(gameforge.dragon_soul._1130_say)
else
say(gameforge.dragon_soul._1140_say)
pc.setf("dragon_soul", "eye_timestamp", today)
pc.setf("dragon_soul", "eye_left", 3)
set_state(state_farming)
end
end
end
-- deprecated states. so, jump to new state.
state state_1 begin
when login begin
set_state(state_learning)
end
end
state state_2 begin
when login begin
set_state(state_learning)
end
end
state state_3 begin
when login begin
set_state(state_closed_season)
end
end
end
Avatar utilizator
gubigubi
Nivel 3

Nivel 3
Mesaje: 358
Membru din: 15 Iul 2014, 12:17
Aprecieri: 34  
Mulţumiri: 4  
Medalii

Up!
Avatar utilizator
gubigubi
Nivel 3

Nivel 3
Mesaje: 358
Membru din: 15 Iul 2014, 12:17
Aprecieri: 34  
Mulţumiri: 4  
Medalii

up
Avatar utilizator
gubigubi
Nivel 3

Nivel 3
Mesaje: 358
Membru din: 15 Iul 2014, 12:17
Aprecieri: 34  
Mulţumiri: 4  
Medalii

UP
Avatar utilizator
gubigubi
Nivel 3

Nivel 3
Mesaje: 358
Membru din: 15 Iul 2014, 12:17
Aprecieri: 34  
Mulţumiri: 4  
Medalii

UP..
Avatar utilizator
BeauDeCiuda
Utilizator interzis !

Utilizator interzis !
Mesaje: 1915
Membru din: 24 Mar 2014, 16:25
Server: http://infomanii.ro
Regat: Chunjo
Aprecieri: 169  
Mulţumiri: 225  
 Contact:
Medalii

Cioburile au timp ?
Imagine
Afișează semnătura
Avatar utilizator
[ST]SSH
Membru Club

Membru Club
Mesaje: 1704
Membru din: 12 Apr 2016, 23:54
Server: Fost Eluria2
Regat: Jinno
Aprecieri: 132  
Mulţumiri: 245  
 Contact:
Medalii

modifica din real_time in : LIMIT_NONE
dupa real_time trebuie sa ai timpul,schimba in 0
Pentru acest mesaj, [ST]SSH for the post:
gubigubi
Avatar utilizator
gubigubi
Nivel 3

Nivel 3
Mesaje: 358
Membru din: 15 Iul 2014, 12:17
Aprecieri: 34  
Mulţumiri: 4  
Medalii

[ST]SSH scrie:modifica din real_time in : LIMIT_NONE
dupa real_time trebuie sa ai timpul,schimba in 0
Acum se stackează, rămâne 10, și nu-mi dă cor, rămâne 10 bucați...
Edit: Am observat că mi-a rămas la 3 bucăți, cum pot să pun să fie 200 de coruri pe zi?
Avatar utilizator
BeauDeCiuda
Utilizator interzis !

Utilizator interzis !
Mesaje: 1915
Membru din: 24 Mar 2014, 16:25
Server: http://infomanii.ro
Regat: Chunjo
Aprecieri: 169  
Mulţumiri: 225  
 Contact:
Medalii

gubigubi scrie:
[ST]SSH scrie:modifica din real_time in : LIMIT_NONE
dupa real_time trebuie sa ai timpul,schimba in 0
Acum se stackează, rămâne 10, și nu-mi dă cor, rămâne 10 bucați...
Edit: Am observat că mi-a rămas la 3 bucăți, cum pot să pun să fie 200 de coruri pe zi?
din quest <200 in loc de cate ai tu <3.
Imagine
Afișează semnătura
Avatar utilizator
[ST]SSH
Membru Club

Membru Club
Mesaje: 1704
Membru din: 12 Apr 2016, 23:54
Server: Fost Eluria2
Regat: Jinno
Aprecieri: 132  
Mulţumiri: 245  
 Contact:
Medalii

Arhivat!
Închis

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie