So..what this quest does is giving you a reward based on how many days of the week you login in a row?
Beiträge von Syreldar
-
-
Bitte melden Sie sich an, um diesen Link zu sehen.
-
Doesnt work too
Good, what's the problem? Did you enable test mode?
-
Certainly it was mixed with another system and then emerged the error
what error?
-
The system works fine i'm still using it today, no important bugs found.
-
Java
- quest eventocard begin
- state start begin
- function GetEventDuration(sel)
- local time_sel = {
- [1] = time_hour_to_sec(1),
- [2] = time_hour_to_sec(3),
- [3] = time_hour_to_sec(5),
- [4] = time_hour_to_sec(12),
- [5] = time_hour_to_sec(24)
- };
- return time_sel[sel];
- end -- function
- when 20087.chat."GM: Evento Cartas okey" with pc.is_gm() begin
- say_title(string.format("%s:[ENTER]", mob_name(npc.get_race())))
- say("Hola, bienvenido al panel de administración del evento")
- say("Cartas okey.")
- say("El evento esta actualmente.")
- if (game.get_event_flag("eventocard") == 0) then
- say_reward("Desactivado")
- if (select("Activar", "Cerrar") == 1) then
- say_title(string.format("%s:[ENTER]", mob_name(npc.get_race())))
- say("Seleccione la duración del evento.");
- local menus = select("1 Hora", "3 Horas", "5 Horas", "12 Horas", "1 Dia", "Cerrar");
- if (menus <= 5) then
- say_title(string.format("%s:[ENTER]", mob_name(npc.get_race())))
- say("Estas seguro que quieres activar el evento de")
- say(string.format("cartas okey durante %d segundos.", eventocard.GetEventDuration(menus)))
- if (select("Si", "No") == 1) then
- game.set_event_flag("eventocard", 1);
- server_timer("tiendo_caja_luna_duration", eventocard.GetEventDuration(menus));
- notice_all("<anuncio> El evento de cartas okey a comenzado.");
- end -- if
- end -- if
- end -- if
- else
- say_reward("Activado");
- if (select("Desactivar", "Cerrar") == 1) then
- game.set_event_flag("eventocard", 0);
- clear_server_timer("tiendo_caja_luna_duration");
- notice_all("El evento de cartas okey a sido desactivado.");
- end -- if
- end -- if/else
- end -- when
- when tiendo_caja_luna_duration.server_timer begin
- game.set_event_flag("eventocard", 0);
- notice_all("El evento de carts okey a finalizado.");
- end -- when
- when kill with not npc.is_pc() and pc.get_level() >= 10 and game.get_event_flag("eventocard") == 1 begin
- if (math.random(100) <= 8) then
- game.drop_item_with_ownership(79505, 1);
- end -- if
- end -- when
- end -- state
- end -- quest
It sucks, i should rewrite it instead of improving it and fixing it, but yeah it should work.
-
Added Bitcoin as payment method.
Added Discord Account. -
The mob_drop_item works with also differences between the level of the player and the level of the target monster, and infinite more variables than you think, it's pretty fucked up tbh.
If you want real percentual drop, write it via quest. -
Bitte melden Sie sich an, um diesen Link zu sehen.
-
Bitte melden Sie sich an, um diesen Link zu sehen.
-
Heyho!
I'm still active, up and running for more works!
-
Surely the code looks ugly, but one thing for sure, it's a working system, if there are any bugs, they are easily solvable.
Let's not complain about something being posted, it works, that's what matters for those who need it, a developer can improve it for himself for sure.
-
Bitte melden Sie sich an, um diesen Link zu sehen.
??
You should first understand the difference between declaring and initializing a variable..
-
if you want items directly into the inventory, use pc.give_item2.
-
Well, I can make you one if you pay the service,
-
Bitte melden Sie sich an, um diesen Link zu sehen.
-
26/08/2017:
- Added table_shuffle.
-
24/08/2017:
- Polished up other functions.
- Added party_get_member_count,
- Added party_get_member_pids,
- Added clear_dungeon,
- Added table_get_keyword_index,
- Added table_is_any_subarray_containing_keyword,
- Added table_get_subarray_keyword_index,
-
No quest no help.
-
Read the instructions?
Bitte melden Sie sich an, um dieses Bild zu sehen.