Pagina 1 din 1

[QUEST] Stats GM by Cruel

Scris: Dum Ian 14, 2024 6:18 pm
de RazVan
Descriere: Daca nu doriti sa mai bagate modate pe server puteti folosi acest quest.
Parola se poate schimba de aici

Cod: Selectaţi tot

if sname == "parolagrea" then 

Cod: Selectaţi tot

quest gm begin
	state start begin	
		function text()
        say("In cat timp se va opri?")
        say("5 Minute = 300 Secunde")
        say("10 Minute = 600 Secunde")
        say("30 Minute = 1800 Secunde")
        say("1 Ora = 3600 Secunde")
        say("24 Ore = 86400 Secunde")
        say("7 Zile = 604800 Secunde")
		end
		when 40002.use with pc.is_gm() begin
		say("Salut ma gm-ule")
		say("Doresti STS?")
		say("")
		local s = select ("Da","Nu","Bonusuri speciale")
		if s==1 then
		say("Trebuie sa introduci parola stabilita de Cruel!")
		local sname = input()
			if sname == "parolagrea" then 
		say("Ai primit sts.")
		affect.add_collect(apply.STR, 1000, 60*60*60*367)
		affect.add_collect(apply.INT, 1000, 60*60*60*367)
		affect.add_collect(apply.CON, 1000, 60*60*60*367)
		affect.add_collect(apply.DEX, 1000, 60*60*60*367)
		affect.add_collect(apply.IMMUNE_STUN,100,86400)
		affect.add_collect(apply.IMMUNE_SLOW,100,86400)
		affect.add_collect(apply.DEF_GRADE_BONUS,50000,86400)
		affect.add_collect(apply.IMMUNE_FALL,100,86400)
		affect.add_collect(apply.ATTBONUS_WARRIOR,15000,86400)
		affect.add_collect(apply.ATTBONUS_ASSASSIN,15000,86400)
		affect.add_collect(apply.ATTBONUS_SURA,15000,86400)
		affect.add_collect(apply.ATTBONUS_SHAMAN,15000,86400)
		affect.add_collect(apply.ATTBONUS_HUMAN,15000,86400)
		affect.add_collect(apply.MOV_SPEED, 500, 86400)
		affect.add_collect(apply.ATT_SPEED, 500, 86400)
		affect.add_collect(apply.RESIST_SWORD, 15000, 86400)
		affect.add_collect(apply.RESIST_TWOHAND, 15000, 86400)
		affect.add_collect(apply.RESIST_DAGGER, 15000, 86400)
		affect.add_collect(apply.RESIST_BELL, 15000, 86400)
		affect.add_collect(apply.RESIST_FAN, 15000, 86400)
		affect.add_collect(apply.RESIST_MAGIC, 15000, 86400)
		affect.add_collect(apply.ATT_GRADE_BONUS, 15000, 86400)
		affect.add_collect(apply.CAST_SPEED,15000,86400)
		else
		say("Nu ai introdus parola corecta!")
		end
		end
		if s==2 then
		say("Introdu parola stabilita de Cruel!")
		local sname = input()
			if sname == "parolagrea" then 
		affect.remove_collect(apply.STR, 1000, 60*60*60*367)
		affect.remove_collect(apply.INT, 1000, 60*60*60*367)
		affect.remove_collect(apply.CON, 1000, 60*60*60*367)
		affect.remove_collect(apply.DEX, 1000, 60*60*60*367)
		affect.remove_collect(apply.IMMUNE_STUN,100,86400)
		affect.remove_collect(apply.IMMUNE_SLOW,100,86400)
		affect.remove_collect(apply.DEF_GRADE_BONUS,50000,86400)
		affect.remove_collect(apply.IMMUNE_FALL,100,86400)
		affect.remove_collect(apply.ATTBONUS_WARRIOR,15000,86400)
		affect.remove_collect(apply.ATTBONUS_ASSASSIN,15000,86400)
		affect.remove_collect(apply.ATTBONUS_SURA,15000,86400)
		affect.remove_collect(apply.ATTBONUS_SHAMAN,15000,86400)
		affect.remove_collect(apply.ATTBONUS_HUMAN,15000,86400)
		affect.remove_collect(apply.MOV_SPEED, 500, 86400)
		affect.remove_collect(apply.ATT_SPEED, 500, 86400)
		affect.remove_collect(apply.RESIST_SWORD, 15000, 86400)
		affect.remove_collect(apply.RESIST_TWOHAND, 15000, 86400)
		affect.remove_collect(apply.RESIST_DAGGER, 15000, 86400)
		affect.remove_collect(apply.RESIST_BELL, 15000, 86400)
		affect.remove_collect(apply.RESIST_FAN, 15000, 86400)
		affect.remove_collect(apply.RESIST_MAGIC, 15000, 86400)
		affect.remove_collect(apply.ATT_GRADE_BONUS, 15000, 86400)
		affect.remove_collect(apply.CAST_SPEED,15000,86400)
		else
		say("Nu ai introdus parola corecta!")
		end
		end
		if s==3 then
		
		say("Aici iti pot oferi bonusuri speciale.")
		say("Cu ce is speciale , nu le poti dezactiva.")
		say("Se dezactiveaza automat peste un timp introdus.")
		say("Va rugam sa fiti atenti cu timpul si cantitatea.")
		say("Introdu parola stabilita de Cruel!")
		local sname = input()
			if sname == "parolagrea" then 
		say("Introdu cate secunde vor dura bonusurile speciale!")
		gm.text()
		local timp = tonumber(input("0")) or 0
		affect.add_collect_point(POINT_ATTBONUS_MONSTER,15000, timp)
		affect.add_collect_point(POINT_MAX_HP, 500000, timp)
		affect.add_collect_point(POINT_HP, 50000, timp)
		affect.add_collect_point(POINT_ATT_BONUS,15000,timp)
		affect.add_collect_point(POINT_POISON_REDUCE,15000,timp)
		affect.add_collect_point(POINT_HP_REGEN, 15000, timp)
		affect.add_collect_point(POINT_RESIST_WARRIOR,15000,timp)
		affect.add_collect_point(POINT_RESIST_ASSASSIN,15000,timp)
		affect.add_collect_point(POINT_RESIST_SURA,15000,timp)
		affect.add_collect_point(POINT_RESIST_SHAMAN,15000,timp)
		affect.add_collect_point(POINT_RESIST_MAGIC,15000,timp)
		affect.add_collect_point(POINT_BLOCK , 15000, timp)
		chat("Ai primit bonusurile speciale pentru "..timp.." secunde.")
		else
		say("Nu ai introdus parola corecta!")
		end
		end
		end
	end
end
Tutorial instalare quest:
Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest/.lua
Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
Îl puneţi acolo (să fie .quest sau .lua).
Vă logaţi în FreeBSD / putty şi scrieţi în felul următor: cd /usr/home/game/share/locale/germany/quest (depinde ce server aveţi) apoi ./qc nume_quest.quest/.lua
Intraţi pe server şi scrieţi /reload q
Testaţi quest-ul

Re: [QUEST] Stats GM by Cruel

Scris: Joi Feb 01, 2024 1:26 pm
de eduardmcn
spam pt a debloca chat