Jump to content

Recommended Posts

Posted

nivel: http://prntscr.com/1a39hg

selection con el nivel: http://prntscr.com/1a39mf

 

otro nivel: http://prntscr.com/1a39re

selection con ese nivel: http://prntscr.com/1a39ul

 

para cambiar las mapas, editen la tabla

quest tele begin 
   state start begin 
       function warp_tab(warp) 
           local a,lvl={},pc.get_level() 
           table.foreach(warp,function(val,i) 
               if lvl >= val then table.insert(a,val) end 
           end) 
           return a 
       end 
       function local_table(warp) 
           local tabelle,main_menu,sel_table = tele.warp_tab(warp),{},{} 
           table.sort(tabelle) 
           table.foreach(tabelle,function(i,n) main_menu[i]={warp[n][1],warp[n][2]} sel_table[i]=warp[n][3] end) 
           return main_menu,sel_table 
       end 
       when 9009.chat."Teleport pro" begin 
           local warp={ 
               --[lvl]={x,y,"Map_name"}, 
               [30]={105,106,"Cuba"}, 
               [50]={109,110,"Spain"}, 
               [20]={103,104,"Miami"}, 
               [10]={101,102,"USA"}, 
               [40]={107,108,"London"}, 
           } 
           say_title("Teleport:") 
           say() 
           say("if your level is rising, more maps unlocked.") 
           say("where you like want to go?") 
           local ports,map_auswahl=tele.local_table(warp) 
           table.insert(map_auswahl,locale.cancel) 
           local auswahl=select_table(map_auswahl)--select2(map_auswahl) 
           if auswahl==table.getn(map_auswahl) then return end 
           pc.warp(ports[auswahl][1],ports[auswahl][2]) 
           --say(ports[auswahl][1].."x , "..ports[auswahl][2].." y") 
       end 
   end 
end

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.