Thread: Vengeance PI

Results 1 to 2 of 2
  1. #1 Vengeance PI 
    Registered Member
    Join Date
    Apr 2013
    Posts
    36
    Thanks given
    3
    Thanks received
    0
    Rep Power
    11
    Okay, so I have vengeance added in, there's just one problem. Players who don't have 94 mage/40 def/the runes, etc. do the anim/forcedchat when they click the button, but veng doesn't actually work. I want it so that they don't do the anim/forcedchat, I don't know what's wrong with my code, but here it is, please help!


    Code:
    			case 118098: // Vengeance
    				c.getPA().vengMe();
    				if (c.playerLevel[6] < 94) {
    					c.sendMessage("You need a magic level of 94 to cast this spell.");
    					break;
    				}
    				else if (c.playerLevel[1] < 40) {
    					c.sendMessage("You need a defence level of 40 to cast this spell.");
    					break;
    				}
    				else if (!c.getItems().playerHasItem(9075, 4)
    						|| !c.getItems().playerHasItem(557, 10)
    						|| !c.getItems().playerHasItem(560, 2)) {
    					c.sendMessage("You don't have the required runes to cast this spell.");
    					break;
    				}
    				else if (System.currentTimeMillis() - c.lastCast < 30000) {
    					c.sendMessage("You can only cast vengeance every 30 seconds.");
    					break;
    				} else {
    				c.sendMessage("You cast vengeance.");
    				c.forcedChat(""+ c.playerName + " casts vengeance!");
    			break;
    				}
    fixed.
    Last edited by brut; 04-09-2013 at 02:48 AM. Reason: fixed.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Mar 2012
    Posts
    61
    Thanks given
    3
    Thanks received
    3
    Rep Power
    11
    Im no expert at PI but ide say it was because of the c.getPA().vengMe(); RIght at the top, It should be in the code at the bottom that says 'you cast vengance'? as i say im no expert but it possibly is that there mate.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI] Making vengeance save on logout.
    By Moronic in forum Tutorials
    Replies: 22
    Last Post: 08-26-2012, 07:15 AM
  2. [PI] Vengeance Other, Need Help [PI]
    By Kickyamom in forum Help
    Replies: 4
    Last Post: 11-27-2010, 03:43 AM
  3. [PI] Better DFS, NPC Vengeance, And NPC Recoil
    By Dexter Morgan in forum Snippets
    Replies: 65
    Last Post: 11-19-2010, 01:37 PM
  4. [Help] - PI - Adding Vengeance
    By NewCoding in forum Help
    Replies: 2
    Last Post: 10-01-2010, 10:18 PM
  5. [PI] Vengeance GFX
    By resurrect in forum Help
    Replies: 9
    Last Post: 09-27-2010, 09:20 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •