[SERVICE] Die Questerstellung

05/19/2015 19:57 .Soυzα#2791
Quote:
Originally Posted by Kilroy. View Post
Code:
quest k0rK4qqAsH0r begin
	state start begin
		when 20501.chat."Süßes oder Saures!" with game.get_event_flag("halloween_chest_2015")==1 begin
			say_title("Jack O'Lantern")
			say("")
			say("TEXT")
			say("ANPASSBAR")
			say("DARUNTER AUSWÄHLBAR")
			if select("Ja!","Nein")==2 then return end
			if pc.count_item(30322)>0 and pc.count_item(50095)>0 and pc.count_item(50032)>0 then
				pc.remove_item(30322, 1)
				pc.remove_item(50095, 1)
				pc.remove_item(50032, 1)
				say_title("Jack O'Lantern")
				say("")
				say("")
				say(color256(255,255,0).."Du bekommst eine Halloween-Truhe!"..color256(196,196,196))
				pc.give_item2(Truhe, 1) -- Truhen ID
			else
				say_title("Jack O'Lantern")
				say("")
				say("Text selbst anpassbar!")
				select("Okay")
				setskin(NOWINDOW)
			end
		end
	end
end
Hat wunderbar geklappt, ich bedanke mich.
05/19/2015 20:55 HowToPlayxD#2792
Hay ho ePvP :3
Ich habe hier eine Quest die mal umgeschrieben werden müsste :S

Quest:
PHP Code:
quest siegelwahl begin 
    state start begin 
        when login 
or levelup with pc.level >= 1 begin 
            set_state
(information) 
        
end 
    end 
    state information begin 
        when letter begin 
            send_letter
("Reittier Auswahl") 
        
end 
        when button 
or info begin  
            say_title
("Reittier Auswahl") 
            
say_reward("Bitte wähle das Reittier welches du haben möchtest") 
            
say("") 
            
say_reward("Diese stehen dir zur Auswahl:") 
            
local s = select("Keiler","Löwe","Tiger","Wolf","Abbrechen") 
            if 
s == 1 then 
                pc
.give_item2(71114)
                
clear_letter()
            
end
            
if s == 2 then 
                pc
.give_item2(71120) 
                
clear_letter()
            
end
            
if s == 3 then 
                pc
.give_item2(71118) 
                
clear_letter()
            
end
            
if s == 4 then 
                pc
.give_item2(71116) 
                
clear_letter()
            
end
            
if s == 5 then
                
return
            
end        
        end
    end
end 
Was will ich nun?
Das die Quest durch ein klick auf ein Item aktiviert wird und wenn man auf Keiler, Löwe, Tiger, Wolf klickt das eine weiteres teil erscheint wo die bonis der Mount stehen + zurück falls man zurück will und die quest soll nur 1x gemacht werden sodass man nur 1 Mount haben kann
05/19/2015 21:15 mortovivo13#2793
Quest´s Request:

1º Quest:
When player go to a npc , click and then give option "Give karma"
and then give (x) of karma!

2º Quest:
When player kill (x) mob say go to a npc and then npc say , thank you and give reward!

Thank You!
05/19/2015 22:52 KΛIƬӨ#2794
Quote:
Originally Posted by HowToPlayxD View Post
Hay ho ePvP :3
Ich habe hier eine Quest die mal umgeschrieben werden müsste :S

Quest:
PHP Code:
quest siegelwahl begin 
    state start begin 
        when login 
or levelup with pc.level >= 1 begin 
            set_state
(information) 
        
end 
    end 
    state information begin 
        when letter begin 
            send_letter
("Reittier Auswahl") 
        
end 
        when button 
or info begin  
            say_title
("Reittier Auswahl") 
            
say_reward("Bitte wähle das Reittier welches du haben möchtest") 
            
say("") 
            
say_reward("Diese stehen dir zur Auswahl:") 
            
local s = select("Keiler","Löwe","Tiger","Wolf","Abbrechen") 
            if 
s == 1 then 
                pc
.give_item2(71114)
                
clear_letter()
            
end
            
if s == 2 then 
                pc
.give_item2(71120) 
                
clear_letter()
            
end
            
if s == 3 then 
                pc
.give_item2(71118) 
                
clear_letter()
            
end
            
if s == 4 then 
                pc
.give_item2(71116) 
                
clear_letter()
            
end
            
if s == 5 then
                
return
            
end        
        end
    end
end 
PHP Code:
quest kaito begin
    state start begin
        when login 
or levelup with pc.get_level() >= 1 begin -- Levelbegrenzung eigentlich nicht nötig.
            
send_letter("Reittier Auswahl")
        
end
        when button 
or info begin
            say_title
("Reittier Auswahl")
            
say() -- say("") ist nicht notwendig, say() machts auch.
            
say_reward("Bitte wähle das Reittier welches du haben möchtest")
            
local tab = {
                {
"Keiler",71114}
                {
"Löwe",71120}
                {
"Tiger",71118}
                {
"Wolf",71116}
                {
"Abbrechen"}
            }
            
local s = select_table(tab)
            if 
not s == 5 then 
                table
.remove(tab,{"Abbrechen"})
                for 
__,i in pairs(tab) do 
                    
pc.give_item2(s[2])
                
end
                
return
            else
                return
            
end
        end
    end
end 
including buguser get -100 karma/alignment.
05/19/2015 23:36 mortovivo13#2795
DYSKaito
Osu Noob :P
------------------

Can you just put the npc to give karma? instead of put input etc..
05/19/2015 23:46 HowToPlayxD#2796
@DYSKaito
Die Mount quest geht bei mir nicht und sie sollte durch rechts klick auf ein Item gemacht werden und nicht durch send letter
05/20/2015 00:20 KΛIƬӨ#2797
dann mach einfach use. alignment quest :
PHP Code:
 quest kaito begin state start begin when vnum.use begin say("u want karma"?) if select("Yes","no") == 2 then return end pc.change_alignment(Howmuch u want) end end end [PHP/]

 
Gesendet von meinem GT-I9300 mit Hilfe von Elitepvpers, bereitgestellt von appyet.com

PHP
] quest kaito begin state start begin when vnum.use begin say("u want karma"?) if select("Yes","no") == 2 then return end pc.change_alignment(Howmuch u want) end end end 
Gesendet von meinem GT-I9300 mit Hilfe von Elitepvpers, bereitgestellt von appyet.com

[PHP] quest kaito begin state start begin when vnum.use begin say("u want karma"?) if select("Yes","no") == 2 then return end pc.change_alignment(Howmuch u want) end end end [PHP/]

Gesendet von meinem GT-I9300 mit Hilfe von Elitepvpers, bereitgestellt von appyet.com

PHP Code:
 quest kaito begin state start begin when vnum.use begin say("u want karma"?) if select("Yes","no") == 2 then return end pc.change_alignment(Howmuch u want) end end end 
]

Gesendet von meinem GT-I9300 mit Hilfe von Elitepvpers, bereitgestellt von appyet.com
05/20/2015 20:35 mortovivo13#2798
Quest Request

When player kill (x) mob , say hum.. well done and then give a random item from a list .
With percentage please!
Thank You!
05/20/2015 20:51 KΛIƬӨ#2799
Quote:
Originally Posted by mortovivo13 View Post
Quest Request

When player kill (x) mob , say hum.. well done and then give a random item from a list .
With percentage please!
Thank You!
Code:
quest kaito begin
	state start begin
		when kill with not npc.is_pc() begin
			say("what u want")
			local tab = {
				{vnums}
				{vnums}
			}
			for __,i in pairs(tab) do 
				pc.give_item2(math.random(1,table.getn(i)))
			end
		end
	end
end
05/20/2015 21:37 mortovivo13#2800
Where is the percentage of drop item?
05/20/2015 21:39 KΛIƬӨ#2801
Quote:
Originally Posted by mortovivo13 View Post
Where is the percentage of drop item?
Code:
pc.give_item2(math.random(1,table.getn(i)))
or do u want the percentage for the drop?
05/20/2015 21:47 mortovivo13#2802
I want a percentage for drop the item and also when give the item , give a random item!
05/21/2015 08:01 .Various#2803
Quote:
Originally Posted by mortovivo13 View Post
Quest Request

When player kill (x) mob , say hum.. well done and then give a random item from a list .
With percentage please!
Thank You!
Code:
quest killdrop begin
	state start begin
		function perc_chance(i)
			return math.random() <= (i/100)
		end
		when kill with not npc.is_pc() begin
			-- if npc.get_race() == 'HERE' then
				local items = {
							  {19,killdrop.perc_chance(100)},
							  {29,killdrop.perc_chance(50)},
							  {39,killdrop.perc_chance(1)}
							  }
				for i=1, table.getn(items), 1 do
					if items[i][2] == true then
						pc.give_item2(items[i][1], 1)
					end
				end
				chat("hum..well done!")
			-- end
		end
	end
end
I made you an example.
19,29,39 are the vnums. You can put there all itemvnums you want.
Put the percentage of items here: killdrop.perc_chance(HERE YOUR PERC)
You can add Items in the List with '{},'
Dont touch the rest.
If you want that players get the items only at some monsters,
delete '--' at line 7 and 19 and put monster vnum npc.get_race() == 'HERE'.
perc_chance - Funktion by Sensenmann, thanks for that.

MfG, .Various
05/21/2015 08:11 mortovivo13#2804
.Various
---------------

And if i want just for 1 mob , what i have to change?
Like when player kill just 1 mob!
05/21/2015 08:48 .Various#2805
Quote:
Originally Posted by mortovivo13 View Post
.Various
---------------

And if i want just for 1 mob , what i have to change?
Like when player kill just 1 mob!
Do you mean, 1 Monster at all time or do you mean when i kill for example
Azreal i get item and when i kill him again and again i get item?