Register for your free account! | Forgot your password?
Rust Cheats

You last visited: Today at 15:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PointSystem [TEST_QUEST]

Discussion on PointSystem [TEST_QUEST] within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 200
Join Date: Sep 2011
Posts: 174
Received Thanks: 379
PointSystem [TEST_QUEST]

hello epvp,
its point system i write just for test
first add to it in /home/../quest/questnpc.txt :
1093 boss1
and its quest :
PHP Code:
------------------------------------------------------------------
---- 
test quest of point system
---- questnpc.txt 
---- 
1093 boss1
------------------------------------------------------------------        
quest test_point begin
        state start begin
                when login begin
                    chat
("your point : "..pc.getqf("point"))
                
end -- s

                when letter begin
                    send_letter
("Get Item of point system")
            
end
                when button 
or info begin
                        
if pc.getf("point") == 20 then
                    say_title
("Your Point : 20 anymore!")
                    
say("Please select your gift : ")
                    
say("")
                    ----
"12345678901234567890123456789012345678901234567890"|
                    
                            
local s select("TestItem1","TestItem2","Close"
                            
                            if 
1==s then
                        say_title
("Okey")
                        
pc.give_item2(1)
                        
pc.setf("point",pc.getf("point")-20)
                        
clear_letter()
                            elseif 
1==s then 
                        say_title
("Okey")
                        
pc.give_item2(2)
                        
pc.setf("point",pc.getf("point")-20)
                        
clear_letter()
                            else
                        
say_title("Bye...")
                        
say("")
                        
say("")
                        ----
"12345678901234567890123456789012345678901234567890"|
                        
say("Bye...")
                
end -- s
            end 
-- else
        
end -- elseif
        
                
when boss1.kill begin
                    pc
.setf("point",pc.getf("point")+1)
                
end -- s
            end 
-- w
                end 
-- 
TheDestroyer™ is offline  
Old 10/03/2011, 18:46   #2
 
elite*gold: 32
Join Date: Dec 2010
Posts: 1,294
Received Thanks: 862
will not work

btw: you can only buy an item with exactly 20 coins? what you want to do if someone has 21?
√π. is offline  
Old 10/03/2011, 18:50   #3
 
elite*gold: 200
Join Date: Sep 2011
Posts: 174
Received Thanks: 379
give me 50 € i'll get screen for you D
TheDestroyer™ is offline  
Old 10/03/2011, 18:53   #4
 
elite*gold: 32
Join Date: Dec 2010
Posts: 1,294
Received Thanks: 862
you bet 50€?
√π. is offline  
Old 10/03/2011, 18:59   #5
 
elite*gold: 4
Join Date: Mar 2010
Posts: 2,797
Received Thanks: 818
xD das ist naja im Grunde nichts... das passt ja kaum was...
z.b.
muss es elseif 2==s then heißen und nicht wieder 1... naja
IRoxasI is offline  
Old 10/03/2011, 19:02   #6
 
iYoshix3's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 1,264
Received Thanks: 2,020
Ist ähnlich aufgebaut wie meine Ingame Coins Quests, die ich mal pub. gemacht habe.
Nur heit es da Ingame Special Points

Mfg
iYoshix3 is offline  
Old 10/03/2011, 19:44   #7
 
elite*gold: 80
Join Date: Dec 2007
Posts: 2,225
Received Thanks: 4,765
Schlecht gemacht, da die Coins nur Char und nicht Accountübergreifend sind. Vielleicht mache ich irgendwann mal ein Teil meines Itemshops pub.

Lg
Prσfizσcker94 is offline  
Old 10/03/2011, 19:56   #8


 
ZyoX's Avatar
 
elite*gold: 83
Join Date: Apr 2010
Posts: 1,665
Received Thanks: 685
Quest wird nicht funktionieren, da paar ends fehlen.
Accountübergreifende Punkte wäre sinnvoller (auslesbar z. B. aus der DB).
ZyoX is offline  
Old 10/03/2011, 20:38   #9
 
elite*gold: 0
Join Date: Aug 2010
Posts: 115
Received Thanks: 50
vn its just test quest and if 1==s that codes true .d
JoinClup is offline  
Old 10/04/2011, 00:37   #10
 
iYoshix3's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 1,264
Received Thanks: 2,020
pc.get_accound_id() oder wie der befehl heißt, einfach

game.set_event_flag((""..pc.get_account_id().."coi ns"), 20)

usw.
iYoshix3 is offline  
Old 10/30/2011, 11:50   #11
 
elite*gold: 200
Join Date: Sep 2011
Posts: 174
Received Thanks: 379
mfg thedestroyertm
thank you

Quote:
Originally Posted by √π. View Post
will not work

btw: you can only buy an item with exactly 20 coins? what you want to do if someone has 21?
its test if sameone has 21 , he get nothing , if i want to it , i can add :

20 , 50 , 100 points
and when sameones has 100 coins he/she has not choose just get surprise selection.
TheDestroyer™ is offline  
Reply




All times are GMT +1. The time now is 15:00.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.