Thread: Help !

Results 1 to 8 of 8
  1. #1 Help ! 
    Donator

    tekkit's Avatar
    Join Date
    Oct 2013
    Posts
    431
    Thanks given
    30
    Thanks received
    26
    Rep Power
    94
    ok so basically I want a weapon that has a chance of stunning the opponent during combat

    so I will use code like this

    Code:
    case 15526:
    					if(Misc.random(3) == 1) {
    						return 12031; /** Scimitar Special Anim **/
    					}
    					if(Misc.random(3) == 2) {
    						return 0x814; /** Torags Hammer Anim **/
    					}
    					if(Misc.random(3) == 3) {
    						return 12029; /** Scimitar Slash Anim **/
    					}
    					if(Misc.random(4) == 4) {
    						return 386; /** Rapier Stab Anim **/
    					}
    					if(Misc.random(4) == 0) {
    						return 0x814; /** Torags Hammer Anim **/			
    					} else {
    						return 386; /** Rapier Stab Anim **/
    					}
    and I want to use the dragon spears stun ability

    which is this

    Code:
    case 1249:
    				c.startAnimation(432);
    				c.gfx100(253);
    				if (c.playerIndex > 0) {
    					Client o = (Client)Server.playerHandler.players[i];
    					o.getPA().getSpeared(c.absX, c.absY);
    				}	
    			break;
    but I I do it like this I get errors

    Code:
    case 15526:
    					if(Misc.random(3) == 1) {
    						return 12031; /** Scimitar Special Anim **/
    if (c.playerIndex > 0) {
    					Client o = (Client)Server.playerHandler.players[i];
    					o.getPA().getSpeared(c.absX, c.absY);
    
    					}
    					if(Misc.random(3) == 2) {
    						return 0x814; /** Torags Hammer Anim **/
    					}
    					if(Misc.random(3) == 3) {
    						return 12029; /** Scimitar Slash Anim **/
    					}
    					if(Misc.random(4) == 4) {
    						return 386; /** Rapier Stab Anim **/
    					}
    					if(Misc.random(4) == 0) {
    						return 0x814; /** Torags Hammer Anim **/			
    					} else {
    						return 386; /** Rapier Stab Anim **/
    					}
    please help


    When the rich wage war its the poor that die
    Spoiler for SPOILER:
    Quote Originally Posted by Twisty View Post
    Account sold, purchased it. Went smoothly. Legitimate user, and easy to get along with. Just make sure you're being even and everything goes swell. Very trust worthy don't let his post count and registration date fool you, he acts his age, and doesn't scam like a child. You got my respect bud. +1
    Reply With Quote  
     

  2. #2  
    Super Donator

    Join Date
    Dec 2014
    Posts
    71
    Thanks given
    19
    Thanks received
    12
    Rep Power
    41
    What error do you get?
    Reply With Quote  
     

  3. #3  
    Donator

    tekkit's Avatar
    Join Date
    Oct 2013
    Posts
    431
    Thanks given
    30
    Thanks received
    26
    Rep Power
    94
    Quote Originally Posted by Hamad168 View Post
    What error do you get?
    that this wasn't found or something

    Client o = (Client)Server.playerHandler.players[i];


    When the rich wage war its the poor that die
    Spoiler for SPOILER:
    Quote Originally Posted by Twisty View Post
    Account sold, purchased it. Went smoothly. Legitimate user, and easy to get along with. Just make sure you're being even and everything goes swell. Very trust worthy don't let his post count and registration date fool you, he acts his age, and doesn't scam like a child. You got my respect bud. +1
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Oct 2014
    Posts
    591
    Thanks given
    29
    Thanks received
    76
    Rep Power
    26
    Does the int i exist?
    Reply With Quote  
     

  5. #5  
    Donator

    tekkit's Avatar
    Join Date
    Oct 2013
    Posts
    431
    Thanks given
    30
    Thanks received
    26
    Rep Power
    94
    could someone give me the proper code needed and where to put it please?


    When the rich wage war its the poor that die
    Spoiler for SPOILER:
    Quote Originally Posted by Twisty View Post
    Account sold, purchased it. Went smoothly. Legitimate user, and easy to get along with. Just make sure you're being even and everything goes swell. Very trust worthy don't let his post count and registration date fool you, he acts his age, and doesn't scam like a child. You got my respect bud. +1
    Reply With Quote  
     

  6. #6  
    Donator

    Join Date
    Oct 2014
    Posts
    591
    Thanks given
    29
    Thanks received
    76
    Rep Power
    26
    Quote Originally Posted by tekkit View Post
    could someone give me the proper code needed and where to put it please?
    Dude really.. lol
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Sep 2011
    Posts
    813
    Thanks given
    196
    Thanks received
    60
    Rep Power
    129
    Should make a new file, handling all sorts off effects to weapons and/or spell and/or armour.
    then u could simply use those methods to make your code cleaner.else u'll have to set anim, emote, etc on everyweapon. Could be something like this Effects.Stun(anim, duration, frequenty, gfx, sound):
    Reply With Quote  
     

  8. #8  
    Registered Member o Java o's Avatar
    Join Date
    Sep 2014
    Posts
    184
    Thanks given
    14
    Thanks received
    19
    Rep Power
    0
    Quote Originally Posted by tekkit View Post
    that this wasn't found or something

    Client o = (Client)Server.playerHandler.players[i];
    We need to know where the integer i is coming from so could you please post the entire method block.
    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. Need gfx help?
    By Beh3moth2 in forum General
    Replies: 1
    Last Post: 04-03-2007, 11:50 AM
  2. GIMP brush help
    By man777 in forum Tutorials
    Replies: 0
    Last Post: 04-03-2007, 03:11 AM
  3. Need help again
    By Zane in forum Showcase
    Replies: 4
    Last Post: 04-02-2007, 09:11 PM
  4. Need help choosing sig
    By Zane in forum Showcase
    Replies: 7
    Last Post: 04-02-2007, 03:14 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
  •