Jump to content

Question

Posted

I have change some lines but now i just stuck 
everyone can buy clan skills and if they have clan but i want only clan leaders to buy clan skills
 

if event == "skills":
			if xCLANx == 8888 :

<< i want to add IF not here if not st.getPlayer().isClanLeader() : >> i want only clan leaders to buy clan skills >>

				if st.getQuestItemsCount(Item3) < Count6 :
					return u"<html><title>Exclusive Shop</title><body><center><br><br><img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><font color=\"LEVEL\">\u0423 \u0432\u0430\u0441 \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432 !</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table></center></body></html>"
				st.takeItems(Item3,Count6)
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(370,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(371,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(372,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(373,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(374,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(375,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(376,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(377,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(378,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(379,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(380,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(381,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(382,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(383,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(384,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(385,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(386,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(387,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(388,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(389,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(390,3))
				st.getPlayer().getClan().addNewSkill(SkillTable.getInstance().getInfo(391,1))
				st.getPlayer().getClan().broadcastToOnlineMembers(PledgeSkillList(st.getPlayer().getClan()))
				st.playSound("ItemSound.quest_finish")
				return u"<html><title>Exclusive Shop</title><body><center><br><br><img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><font color=\"LEVEL\">\u0412\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0432\u0441\u0435 \u043a\u043b\u0430\u043d \u0441\u043a\u0438\u043b\u043b\u044b !</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table></center></body></html>"
				st.exitQuest(1)

6 answers to this question

Recommended Posts

  • 0
Posted

i fixed it  with 

elif not st.getPlayer().isClanLeader() :
return u"<html><title>Exclusive Shop</title><body><center><br><br><img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><font color=\"LEVEL\">\u0422\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0434\u0435\u0440 \u043a\u043b\u0430\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043a\u0438\u043b\u043b\u044b !</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table></center></body></html>"
  • 0
Posted (edited)

hehe i know but for now i am not good at coding java but thanks guys

for now i am getting error when i'm using boolean i that IF but i think i will find a way to fix this

Edited by ThugLord92
  • 0
Posted

why you dont use english and you use \u0422\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0434\u0435\u0440 \u043a\u043b\u0430\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043a\u0438\u043b\u043b\u044b

  • 0
Posted

why you dont use english and you use \u0422\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0434\u0435\u0440 \u043a\u043b\u0430\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043a\u0438\u043b\u043b\u044b

Russian guys use this method, maybe he found a solution from russian forum.

 

 

 

i fixed it  with 

elif not st.getPlayer().isClanLeader() :
return u"<html><title>Exclusive Shop</title><body><center><br><br><img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=300 height=32><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><font color=\"LEVEL\">\u0422\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0434\u0435\u0440 \u043a\u043b\u0430\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043a\u0438\u043b\u043b\u044b !</font><img src=\"L2UI_CH3.herotower_deco\" width=256 height=32><br><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=300 height=32><table><tr><td align=center><button value=\"\u0412\u044b\u0445\u043e\u0434\" action=\"bypass -h npc_%objectId%_Close\" width=75 height=22 back=\"L2UI_ch3.Btn1_normalOn\" fore=\"L2UI_ch3.Btn1_normal\"></td></tr></table></center></body></html>"

Since you found a solution, topic locked.

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock