[QUEST]setbgimage Problem

04/13/2013 22:41 MrLibya#1
Hallo All

i add in map_warp.quest

setbgimage("mrlibya.tga")

And It's Show But The Word Go Out:)
04/13/2013 23:34 Sintiax#2
Copy the Quest, maybe wrong place
04/14/2013 06:55 MrLibya#3
PHP Code:
------------------------------------------
--
NewWorld3 Quest17.11.2010, (c2010
--map_warp.quest
--By Dauni
------------------------------------------

quest map_warp begin
    state start begin
        when 9012.chat
." الناقل " begin
            
-- Variablen Start
        setbgimage
("teport.tga")
            
local map pc.get_map_index()
            
local empire pc.get_empire()
            
local level pc.get_level()
            
local cost math.floor(level 5) * 1000
            local guild_map_names 
= {" منطقة الأتحاد "," منطقة الأتحاد "," منطقة الأتحاد ",}
            
guild_map_name guild_map_names[empire]
            
local empire_castle={"Rote Burg","Gelbe Burg","Blaue Burg",}
            
empire_castle empire_castle[empire]
            
local warp = {
                -- 
guild_map
                    
{
                        { 
1285001000 },
                        { 
1795001000 },
                        { 
27180013000 },
                    },
                -- 
64 map_n_threeway
                    
{
                        { 
402100673900 },
                        { 
270400739900 },
                        { 
321300808000 },
                    },
                -- 
63 metin2_map_n_desert_01
                    
{
                        { 
217800627200 },
                        { 
221900502700 },
                        { 
344000502500 },
                    },
                -- 
61 map_n_snowm_01
                    
{
                        { 
434200290600 },
                        { 
375200174900 },
                        { 
491800173600 },
                    },
                --
empire_castle
                    
--{
                    --    { 
975200133000 },
                    --    { 
977200185000 },
                    --    { 
923900183600 },
                    --} ,
                -- 
62 metin2_map_n_flame_01
                    
{
                        { 
599400756300 },
                        { 
597800622200 },
                        { 
730700689800 },
                    },
                -- 
devil_tower
                    
{
                        { 
590500110500 },
                        { 
590500110500 },
                        { 
590500110500 },
                    },
                -- 
red_forest
                    
{
                        { 
111990070800 },
                        { 
111990070800 },
                        { 
111990070800 },
                    },
                -- 
spider
                    
{
                        { 
85000525000 },
                        { 
85000525000 },
                        { 
85000525000 },
                    },
                --
tempel
                    
{
                        { 
553600143600 },
                        { 
553600143600 },
                        { 
553600143600 },
                    },
                --
tal des todes
                    
{
                        { 
608800634400 },
                        { 
600000755500 },
                        { 
730800689400 },
                    },
                --
deviltower2
                    
{
                        { 
55555005555500 },
                        { 
55555005555500 },
                        { 
55555005555500 },
                    },
                --
skypia01
                    
{
                        { 
100001675000 },
                        { 
100001675000 },
                        { 
100001675000 },
                    },
                --
skypia02
                    
{
                        { 
1536001203200 },
                        { 
1536001203200 },
                        { 
1536001203200 },
                    },
                --
skypiaboss
                    
{
                        { 
8192001049600 },
                        { 
8192001049600 },
                        { 
8192001049600 },
                    },
                --
timeattack01
                    
{
                        { 
777700777700 },
                        { 
777700777700 },
                        { 
777700777700 },
                    },
                --
timeattack02
                    
{
                        { 
888800888800 },
                        { 
888800888800 },
                        { 
888800888800 },
                    },
                --
timeattack03
                    
{
                        { 
999900999900 },
                        { 
999900999900 },
                        { 
999900999900 },
                    },
                --
ox
                    
{
                        { 
870400},
                        { 
870400},
                        { 
870400},
                    },
                --
bossrun
                    
{
                        { 
911100911100 },
                        { 
911100911100 },
                        { 
911100911100 },
                    },
                --
sd2
                    
{
                        { 
665600435200 },
                        { 
665600435200 },
                        { 
665600435200 },
                    },
                --
casino
                    
{
                        { 
444400444400 },
                        { 
444400444400 },
                        { 
444400444400 },
                    },
                --
naga
                    
{
                        { 
555500555500 },
                        { 
555500555500 },
                        { 
555500555500 },
                    },
                --
sd3
                    
{
                        { 
123456700123456700 },
                        { 
123456700123456700 },
                        { 
123456700123456700 },
                    },
            }
            
local sub_set 0
            
--Veriablen End
            say_title
(" الناقل ")
            if 
map == or map == or map == 21 or map == 23 or map == 41 or map == 43 then
                say
("")
                
say_reward(" هل تريد الانتقال؟ ")
            else
                
say_reward(" هل تريد الانتقال؟ ")
            
end
            local s 
select(" نعم "," لا ")
            if 
== 2 then
                
return
            
end
            say_title
(" الناقل ")            
            if 
map == or map == or map == 21 or map == 23 or map == 41 or map == 43 then
                
if level 60 then
                    say
(" حدد المنطقة التي تريد الذهاب اليها ")
                    
say_reward(" سيكلفك ذلك " ..cost.." يانغ. ")
                    
sub_set select(guild_map_name" وادي الغيلان "," صحراء يونغبي "" جبال سوهان "," إلغاء ")
                    if 
sub_set == 5 then
                        
return
                    
end
                
else
                    
say(" حدد المنطقة التي تود الذهاب اليها ")
                    
say_reward(" سيكلفك ذلك " ..cost.." يانغ. ")
                    
sub_set select(guild_map_name" وادي الغيلان "" صحراء يونغبي "" جبال سوهان "," التالي "" إلغاء ")
                    if 
sub_set == 6 then
                        
return
                    
end
                    
if sub_set == 5 then
                        say_title
(" الناقل ")
                        
say(" حدد المنطقة التي تود الذهاب اليها. ")
                        
say_reward(" سيكلفك ذلك " ..cost.." يانغ. ")
                        if 
is_test_server() then
                            sub_set 
select(" أرض النار "" برج الشياطين "," الغابة الحمراء "" برج العناكب "" معبد الضلام "" منتصف أرض النار "" التالي "" إلغاء ") + 4
                            
if sub_set == 12 then
                                
return
                            
end
                            
if sub_set == 11 then
                                say_reward
(" سيكلفك ذلك " ..cost.." يانغ. ")
                                
sub_set select("Dنmonenturm2","Skypia01","Skypia02","Skypia Boss","Timeattack01","Timeattack02","Timeattack03","Weiter","Abbrechen") + 10
                                
if sub_set == 19 then
                                    
return
                                
end
                                
if sub_set == 18 then
                                    say_reward
(" سيكلفك ذلك " ..cost.." يانغ. ")
                                    
sub_set select("OX-Event","Bossrun","Spinnendungeon2","Casino","Naga","Spinnendungeon3","Abbrechen") + 17
                                    
if sub_set == 24 then
                                        
return
                                    
end
                                end
                            end
                        
else
                            
say_reward(" سيكلفك ذلك " ..cost.." يانغ. ")
                            
sub_set select(" أرض النار "" برج الشياطين "," الغابة الحمراء "" برج العناكب "" معبد الضلام "" منتصف أرض النار "" خروج ") + 4
                            
if sub_set == 14 then
                                
return
                            
end
                        end
                    end
                end
                
if pc.get_gold() < cost then
                    say_title
(" الناقل ")
                    
say_reward(" ليس لديك يانغ كافي ")
                    return
                
end
                pc
.changegold(-cost)
                
pc.warp(warp[sub_set][empire][1], warp[sub_set][empire][2])
            else
                if 
empire== 1 then    
                    sub_set3 
select(" يونغان "," يايانغ "" إلغاء ")
                    if 
sub_set3 == 1 then
                        
if pc.get_gold() < cost then
                            say_title
(" الناقل ")
                            
say_reward(" ليس لديك يانغ كافي ")
                            return
                        
end
                        pc
.changegold(-cost)
                        
pc.warp(474300,954800)
                    
end
                    
if sub_set3 == 2 then
                        
if pc.get_gold() < cost then
                            say_title
(" الناقل ")
                            
say_reward(" ليس لديك يانغ كافي ")
                            return
                        
end
                        pc
.changegold(-cost)
                        
pc.warp(353100,882900)
                    
end
                    
if sub_set3 == 3 then
                        
return
                    
end
                
elseif  empire == 2 then  
        setbgimage
("teport.tga")
                    
local sub_set3 select(" جوان "," بوكيونج "" إلغاء ")
                    if 
sub_set3 == 1 then
                        
if pc.get_gold() < cost then
                            say_title
(" الناقل ")
                            
say_reward(" ليس لديك يانغ كافي ")
                            return
                        
end
                        pc
.changegold(-cost)
                        
pc.warp(63800,166400)
                    
end
        setbgimage
("teport.tga")
                    if 
sub_set3 == 2 then
                        
if pc.get_gold() < cost then
                            say_title
(" الناقل ")
                            
say_reward(" ليس لديك يانغ كافي ")
                            return
                        
end
                        pc
.changegold(-cost)
                        
pc.warp(145500,240000)
                    
end
                    
if sub_set3 == 3 then
                        
return
                    
end
        setbgimage
("teport.tga")
                elseif  
empire == 3 then 
                    local sub_set3 
select(" بيونغمو "," باكرا "" إلغاء ")
                    if 
sub_set3 == 1 then
                        
if pc.get_gold() < cost then
                            say_title
(" الناقل ")
                            
say_reward(" ليس لديك يانغ كافي ")
                            return
                        
end
                        pc
.changegold(-cost)
                        
pc.warp(959900,269200)
                    
end
                    
if sub_set3 == 2 then
                        
if pc.get_gold() < cost then
                            say_title
(" الناقل ")
                            
say_reward(" ليس لديك يانغ كافي ")
                            return
                        
end
                        pc
.changegold(-cost)
                        
pc.warp(863900,246000)
                    
end
        setbgimage
("teport.tga")
                    if 
sub_set3 == 3 then
        setbgimage
("teport.tga")
                        return
                    
end
                end
            end
        end
    end
end