I added in the buffer a button that gives "vote buff" to the players.
added the cost in 10 vote medals.
But....its ok if for example i have 20 vote medals in inventory,it consumes 10....But if i have 8 medals it consumes 8 and still gives me the buff. If the medals number are bigger than 10 then yes it consumes 10 only....but it also gives the buff even for 2 medals or 1. i want the cost to be 10 and if i dont have 10 medals to say a message saying "incorrect item count" or like that
Question
Guarder
I added in the buffer a button that gives "vote buff" to the players.
added the cost in 10 vote medals.
But....its ok if for example i have 20 vote medals in inventory,it consumes 10....But if i have 8 medals it consumes 8 and still gives me the buff. If the medals number are bigger than 10 then yes it consumes 10 only....but it also gives the buff even for 2 medals or 1. i want the cost to be 10 and if i dont have 10 medals to say a message saying "incorrect item count" or like that
event id= 104
medal id = 6393
skill id = 2064
NPC=[20701] ADENA_ID=57 MEDAL_ID=6393 QuestId = 20701 QuestName = "NPCBuffer" QuestDesc = "custom" InitialHtml = "1.htm" if event == "104": st.takeItems(MEDAL_ID,10) SkillTable.getInstance().getInfo(2064,1).getEffects(st.getPlayer(),st.getPlayer()) return "1.htm" st.setState(COMPLETED)
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now