Drop card okey

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

Nivel 4
Mesaje: 677
Membru din: 03 Dec 2013, 08:42
Aprecieri: 297  
Mulţumiri: 30  
  Rezolvări prob.: 14
Medalii

*Problemă: Cum fac sa am drop la card okey in toate mapele, activez event apare iconita dar nu mi-a picat de loc card okey.
Tipologie server(PvM / PvP): ...
*Resursă folosită: *Link exclusiv J4M* ....
*ServerFiles utilizat:....
*Syserr: 0

[ Postat de pe Android ] Imagine
Imagine
Afișează semnătura
Avatar utilizator
MaestroYT
Utilizator interzis !

Utilizator interzis !
Mesaje: 49
Membru din: 25 Mai 2019, 11:06
Server: MaestroYT
Regat: Chunjo
Aprecieri: 86  
Mulţumiri: 105  
Medalii

Încearcă cu ăsta.

Cod: Selectaţi tot

quest okey_card begin
    state start begin   
        when login begin
            if game.get_event_flag("okey_card") == 1 then         
                notice("[!]:Evenimentul Okey Card este activ!")            
            end
        end            
        when kill with not npc.is_pc() and game.get_event_flag("okey_card") == 1 begin
         local chance = number(1, 100)
         local chance_max = game.get_event_flag("okey_card_change")                    
            if chance <= chance_max then                  
               pc.give_item2(50011)                     
               -- pc.give_item2(50011)                     
            else
         end
      end
      when 20094.chat."GM: Eveniment Okey Card " with pc.is_gm() begin   
         if pc.is_gm() then         
         say("Hong-Hae:")
         say("")
         say("Ce doresti sa faci?")      
         say("")
            
         if game.get_event_flag("okey_card") == 0 then
            say("Evenimentul cufarul lunii este oprit.")   
            say("")
         else      
            say("Evenimentul cufarul lunii este pornit.")   
            say("")
         end
               
         local s=select("Porneste cufere","Opreste cufere","sansa de drop al cufere","Iesire")
               
         if s==1 then      
            notice_all("[!]: Drop-ul la Okey Card este activ.")                  
            game.set_event_flag("okey_card", 1)               
               
            say("Hong-Hae:")
            say("")
            say("Evenimentul a fost pornit.")
            say("")   
                  
         elseif s==2 then                        
            notice_all("[!]: Evenimentul Okey Card a luat sfarsit.")
            game.set_event_flag("okey_card", 0)               
            
            say("Hong-Hae:")
            say("")
            say("Evenimentul a luat sfarsit.")      
            say("")
                     
         elseif s==3 then
            say("Hong-Hae:")
            say("")
            say("Cat de mare doresti sa fie sansa de aruncare?")
            say("")         
            say("Între 1-100:")
            say("")
               
            local new_chance = tonumber(input())
            
            if new_chance < 0 or new_chance > 100 then               
               say("Eveniment cufere luna:")
               say("")
               say("Valorile introduse nu sunt bune.")            
            else
         
            game.set_event_flag("okey_card_chance", new_chance)
                  
            say("Hong-Hae:")
            say("")
            say("sansa a fost modificata; sansa " ..new_chance.. "%.")
            say("")               
            end   
                  
            elseif s==4 then   
            return            
            end
         end
      end
    end
end
În loc de 50011 pui codul itemului de la Okey Card
În curând online ! https://sv.revolution2.ro/
Discord Adita#6224
Afișează semnătura
Avatar utilizator
yonr1
Nivel 4

Nivel 4
Mesaje: 677
Membru din: 03 Dec 2013, 08:42
Aprecieri: 297  
Mulţumiri: 30  
  Rezolvări prob.: 14
Medalii

MaestroYT scrie: ↑22 Oct 2019, 01:57 Încearcă cu ăsta.

Cod: Selectaţi tot

quest okey_card begin
    state start begin   
        when login begin
            if game.get_event_flag("okey_card") == 1 then         
                notice("[!]:Evenimentul Okey Card este activ!")            
            end
        end            
        when kill with not npc.is_pc() and game.get_event_flag("okey_card") == 1 begin
         local chance = number(1, 100)
         local chance_max = game.get_event_flag("okey_card_change")                    
            if chance <= chance_max then                  
               pc.give_item2(50011)                     
               -- pc.give_item2(50011)                     
            else
         end
      end
      when 20094.chat."GM: Eveniment Okey Card " with pc.is_gm() begin   
         if pc.is_gm() then         
         say("Hong-Hae:")
         say("")
         say("Ce doresti sa faci?")      
         say("")
            
         if game.get_event_flag("okey_card") == 0 then
            say("Evenimentul cufarul lunii este oprit.")   
            say("")
         else      
            say("Evenimentul cufarul lunii este pornit.")   
            say("")
         end
               
         local s=select("Porneste cufere","Opreste cufere","sansa de drop al cufere","Iesire")
               
         if s==1 then      
            notice_all("[!]: Drop-ul la Okey Card este activ.")                  
            game.set_event_flag("okey_card", 1)               
               
            say("Hong-Hae:")
            say("")
            say("Evenimentul a fost pornit.")
            say("")   
                  
         elseif s==2 then                        
            notice_all("[!]: Evenimentul Okey Card a luat sfarsit.")
            game.set_event_flag("okey_card", 0)               
            
            say("Hong-Hae:")
            say("")
            say("Evenimentul a luat sfarsit.")      
            say("")
                     
         elseif s==3 then
            say("Hong-Hae:")
            say("")
            say("Cat de mare doresti sa fie sansa de aruncare?")
            say("")         
            say("Între 1-100:")
            say("")
               
            local new_chance = tonumber(input())
            
            if new_chance < 0 or new_chance > 100 then               
               say("Eveniment cufere luna:")
               say("")
               say("Valorile introduse nu sunt bune.")            
            else
         
            game.set_event_flag("okey_card_chance", new_chance)
                  
            say("Hong-Hae:")
            say("")
            say("sansa a fost modificata; sansa " ..new_chance.. "%.")
            say("")               
            end   
                  
            elseif s==4 then   
            return            
            end
         end
      end
    end
end
În loc de 50011 pui codul itemului de la Okey Card
as avea nevoie de un quest sa si activez/dezactivez event, asta nu merge.
Imagine
Afișează semnătura
Avatar utilizator
Ley
Nivel 9

Nivel 9
Mesaje: 1934
Membru din: 09 Feb 2017, 22:30
Server: Colossus2
Regat: Jinno
Aprecieri: 221  
Mulţumiri: 1338  
Medalii

Subiect inactiv.
Imagine
Afișează semnătura
Închis
Răspunsuri
10
Vizualizări
1095
Răspunsuri
6
Vizualizări
389
Răspunsuri
9
Vizualizări
1001

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

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 107 vizitatori