TiMz Posted February 17, 2014 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 192 Reputation: 9 Joined: 05/08/13 Last Seen: August 23, 2024 Share Posted February 17, 2014 Script only reads the if and not the else part. Which part is written badly? OnPCDieEvent: getmapxy .@map$,.@x,.@y,0; if ( getgroupid() > 3 || killedrid == getcharid(3)) end; else (.@map$ == "arena") { announce rid2name(killerrid)+" wins against "+strcharinfo(0)+" at pvp!",bc_all; warp "prontera",155,180; end; } end; } Quote Link to comment Share on other sites More sharing options...
sandbox Posted February 17, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted February 17, 2014 Mind explaining the output that you want? Quote Link to comment Share on other sites More sharing options...
Kido Posted February 17, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 17, 2014 Script only reads the if and not the else part. Which part is written badly? OnPCDieEvent: getmapxy .@map$,.@x,.@y,0; if ( getgroupid() > 3 || killedrid == getcharid(3)) end; else (.@map$ == "arena") { announce rid2name(killerrid)+" wins against "+strcharinfo(0)+" at pvp!",bc_all; warp "prontera",155,180; end; } end; } shouldn't be like? OnPCDieEvent: getmapxy .@map$,.@x,.@y,0; if ( getgroupid() > 3 || killedrid == getcharid(3)){ end; } else (.@map$ == "arena") { announce rid2name(killerrid)+" wins against "+strcharinfo(0)+" at pvp!",bc_all; warp "prontera",155,180; end; } what is supposed to be after this? getmapxy .@map$,.@x,.@y,0; if ( getgroupid() > 3 || killedrid == getcharid(3)) and then after this? (.@map$ == "arena") { announce rid2name(killerrid)+" wins against "+strcharinfo(0)+" at pvp!",bc_all; warp "prontera",155,180; Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted February 17, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted February 17, 2014 lol you both ... - script kjdfkjsdf -1,{ OnPCDieEvent: if ( strcharinfo(3) != "arena" || getgroupid() > 3 ) end; if ( killerrid ) announce rid2name( killerrid )+" wins against "+ strcharinfo(0), bc_all; // sure .. you need to warp player out even if he suicide warp "prontera",155,180; end; } 1 Quote Link to comment Share on other sites More sharing options...
Kido Posted February 17, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 17, 2014 oh lol sorry still trying to figure out how some scripts work (the order) i was confused of what he wanted @_@ sorry again lol Quote Link to comment Share on other sites More sharing options...
TiMz Posted February 18, 2014 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 192 Reputation: 9 Joined: 05/08/13 Last Seen: August 23, 2024 Author Share Posted February 18, 2014 (edited) Mind explaining the output that you want? Basically the broadcast should happen only in the specific map when one player is killed and shouldn't broadcast when using @die. Edited February 18, 2014 by Isaiah Quote Link to comment Share on other sites More sharing options...
sandbox Posted February 18, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted February 18, 2014 (edited) Try this? OnPCDieEvent: if(strcharinfo(3) == "arena" && getgroupid() < 3 && killerrid != getcharid(0)) { announce rid2name(killerrid)+" wins against "+strcharinfo(0),bc_all; } end; Edited February 18, 2014 by sandbox Quote Link to comment Share on other sites More sharing options...
Patskie Posted February 18, 2014 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 4 hours ago Share Posted February 18, 2014 Might wanna test AnnieRuru approach? Try this? OnPCDieEvent: if(strcharinfo(3) == "arena" && getgroupid() < 3 && killerrid != getcharid(0)) { announce rid2name(killerrid)+" wins against "+strcharinfo(0),bc_all; } end; killerrid is set as account id not character id ( getcharid(3) not getcharid(0) ) Quote Link to comment Share on other sites More sharing options...
sandbox Posted February 19, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: Friday at 12:25 PM Share Posted February 19, 2014 Really!? Then my whole life has been a lie 1 Quote Link to comment Share on other sites More sharing options...
Kido Posted February 20, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 20, 2014 huh there are more pvp npcs that do that but it's only for pvp rooms, so want the braodcast work on different maps o:? Quote Link to comment Share on other sites More sharing options...
Question
TiMz
Script only reads the if and not the else part. Which part is written badly?
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.