trizzy Posted January 7, 2015 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 92 Reputation: 2 Joined: 01/04/15 Last Seen: April 27, 2021 Share Posted January 7, 2015 (edited) after doing tarot on dummy punching bag it teleport itself, how can i fix it? - script Punching Bag -1,{ OnInit: OnDummyKill: monster "payon",145,191,"Punching Bag",1905,1,"Punching Bag::OnDummyKill"; end; OnPCAttackEvent: if ( !@test_punch ) end; @dps_damage += @damage; end; } Edited January 7, 2015 by trizzy Quote Link to comment Share on other sites More sharing options...
1 Emistry Posted January 17, 2015 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted January 17, 2015 OnInit: setmapflag( "payon",mf_monster_noteleport ); ... ... ... Quote Link to comment Share on other sites More sharing options...
0 BlindRO Posted March 6, 2022 Group: Members Topic Count: 8 Topics Per Day: 0.01 Content Count: 25 Reputation: 0 Joined: 01/28/22 Last Seen: February 13, 2023 Share Posted March 6, 2022 how ser please help me - script Punching Bag4 -1,{ OnInit: OnDummyKill: monster "prontera",192,162,"Punching Balls",1905,1,"Punching Bag4::OnDummyKill"; end; } - script Punching Bag5 -1,{ OnInit: OnDummyKill: monster "prontera",197,162,"Punching Balls",1905,1,"Punching Bag5::OnDummyKill"; end; } On 1/17/2015 at 6:07 PM, Emistry said: OnInit: setmapflag( "payon",mf_monster_noteleport ); ser ia have a quest about on goldroom how remove ranking to my gold room script /* create table gold_ranking ( char_id int(11) primary key, name varchar(23) default '', gold_points int(11) default 0, key (gold_points) ) engine = innodb; create table gold_ranking_today ( char_id int(11) primary key, name varchar(23) default '', gold_points_today int(11) default 0, key (gold_points_today) ) engine = innodb; */ prontera,165,195,5 script Gold Room 848,{ OnMenu: OnMain: mes "[ Gold Room ]"; mes "Welcome, ^ff0000" +strcharinfo(0)+ "!^000000"; mes "We rank players based on their performance on farming Gold."; mes " "; .@query$ = "SELECT `name`, IF(@d=t.`gold_points`, @r, @r:=@i), @d:=t.`gold_points`, @i:=@i+1 "; .@query$ += "FROM `gold_ranking` t, (SELECT @d:=0, @r:=0, @i:=1)q "; .@query$ += "ORDER BY `gold_points` DESC LIMIT 1"; .@nb = query_sql(.@query$, .@name$, .@rank, .@kills, .@dummy); query_sql "select gold_points from `gold_ranking` where char_id = "+ getcharid(0), .@killed; menu "Enter ^ff0000Gold Room^000000 ^3333cc(" + getmapusers("ordeal_1-2") + ")^000000",L_Enter,"",L_Total,"",L_Today,"Cancel",L_Cancel; L_Total: clear; mes "[ Gold Ladder ]"; mes "^73acde<Rank>^000000 ^40cc39<Name>^000000 ^cc4f39<Points>^000000"; .@query$ = "SELECT `name`, IF(@d=t.`gold_points`, @r, @r:=@i), @d:=t.`gold_points`, @i:=@i+1 "; .@query$ += "FROM `gold_ranking` t, (SELECT @d:=0, @r:=0, @i:=1)q "; .@query$ += "ORDER BY `gold_points` DESC LIMIT 10"; .@nb = query_sql(.@query$, .@name$, .@rank, .@kills, .@dummy); if ( !.@nb ) { mes " ^777777-- Ladder is currently empty.^000000"; close; } for ( .@i = 0; .@i < .@nb; ++.@i ) mes "^73acde"+ .@rank[.@i] +".^000000 ^40cc39"+ .@name$[.@i] +" : ^000000 ^cc4f39<"+ .@kills[.@i] +">^000000"; end; L_Today: clear; mes "[ Gold Ladder ]"; mes "^73acde<Rank>^000000 ^40cc39<Name>^000000 ^ffad33<Points>^000000"; .@query$ = "SELECT `name`, IF(@d=t.`gold_points_today`, @r, @r:=@i), @d:=t.`gold_points_today`, @i:=@i+1 "; .@query$ += "FROM `gold_ranking_today` t, (SELECT @d:=0, @r:=0, @i:=1)q "; .@query$ += "ORDER BY `gold_points_today` DESC LIMIT 10"; .@nb = query_sql(.@query$, .@name$, .@rank, .@kills, .@dummy); if ( !.@nb ) { mes " ^777777-- Ladder is currently empty.^000000"; close; } for ( .@i = 0; .@i < .@nb; ++.@i ) mes "^73acde"+ .@rank[.@i] +".^000000 ^40cc39"+ .@name$[.@i] +" : ^000000 ^ffad33<"+ .@kills[.@i] +">^000000"; end; L_Enter: specialeffect 253; showscript "'" + strcharinfo(0) + "' entered!",getnpcid(0),AREA; warp "ordeal_1-2",0,0; end; L_Cancel: end; OnNPCKillEvent: if (killedrid == 1369) { if(!$gold_hour) { .@i = 1; } else if($gold_hour) { .@i = rand(1,3); } getitem 969,.@i; if(.@i == 1){ query_sql "insert into gold_ranking values ( "+ getcharid(0) +", '"+ escape_sql( strcharinfo(0) ) +"', 1 ) on duplicate key update name = '"+ escape_sql( strcharinfo(0) )+"', gold_points = gold_points + 1"; query_sql "insert into gold_ranking_today values ( "+ getcharid(0) +", '"+ escape_sql( strcharinfo(0) ) +"', 1 ) on duplicate key update name = '"+ escape_sql( strcharinfo(0) )+"', gold_points_today = gold_points_today + 1"; } if(.@i == 2){ query_sql "insert into gold_ranking values ( "+ getcharid(0) +", '"+ escape_sql( strcharinfo(0) ) +"', 1 ) on duplicate key update name = '"+ escape_sql( strcharinfo(0) )+"', gold_points = gold_points + 2"; query_sql "insert into gold_ranking_today values ( "+ getcharid(0) +", '"+ escape_sql( strcharinfo(0) ) +"', 1 ) on duplicate key update name = '"+ escape_sql( strcharinfo(0) )+"', gold_points_today = gold_points_today + 2"; } query_sql "select gold_points from `gold_ranking` where char_id = "+ getcharid(0), .@killed; query_sql "select gold_points_today from `gold_ranking_today` where char_id = "+ getcharid(0), .@killed_today; end; } end; OnClock0000: npctalk "Daily ladder has been reset!"; query_sql "TRUNCATE TABLE `gold_ranking_today`"; end; } ordeal_1-2 mapflag pvp ordeal_1-2 mapflag nowarpto ordeal_1-2 mapflag nodrop ordeal_1-2 mapflag nobranch ordeal_1-2 mapflag nosave ordeal_1-2 mapflag nomemo ordeal_1-2 mapflag noloot ordeal_1-2 monster Golden Peco 1369,500 ordeal_1-2 monster Golden Peco 1369,500 ordeal_1-2 monster Golden Peco 1369,300 Quote Link to comment Share on other sites More sharing options...
awesomazingxed Posted January 17, 2015 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 95 Reputation: 1 Joined: 10/24/14 Last Seen: August 7, 2015 Share Posted January 17, 2015 Is it just only for Tarot skill? I'm not good in this stuff but you can disable Tarot skill in the map while waiting for a fix. Anyone can help? Quote Link to comment Share on other sites More sharing options...
trizzy Posted January 20, 2015 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 92 Reputation: 2 Joined: 01/04/15 Last Seen: April 27, 2021 Author Share Posted January 20, 2015 OnInit: setmapflag( "payon",mf_monster_noteleport ); ... ... ... thanks Emistry works well Quote Link to comment Share on other sites More sharing options...
Question
trizzy
after doing tarot on dummy punching bag it teleport itself, how can i fix it?
- script Punching Bag -1,{
OnInit:
OnDummyKill:
monster "payon",145,191,"Punching Bag",1905,1,"Punching Bag::OnDummyKill";
end;
OnPCAttackEvent:
if ( !@test_punch ) end;
@dps_damage += @damage;
end;
}
Edited by trizzyLink to comment
Share on other sites
4 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.