Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. you can try this. SIEGE_P: .@name$ = strcharinfo(0); if ( agitcheck() ) { message .@name$, "You can't get any guild profit if there's a war."; } else if ( SIEGEPOINTS < 1 ) { message .@name$, "You don't have any Siege Point(s)."; } else if ( MaxWeight <= Weight * 2 ){ message .@name$, "You can't get any profit if you're over weight."; } else { getinventorylist; if ( @inventorylist_count > 95 ){ message .@name$, "Remove some of your inventory item(s) to get your profit."; } else { setarray .@map$, "aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05", "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05", "payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05", "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05"; .@map_size = getarraysize( .@map$ ); for ( .@i = 0; .@i < .@map_size; .@i++ ) { .@gid = getcastledata( .@map$[.@i],1 ); if ( .@gid && .@name$ == getguildmaster( .@gid ) ) .@count++; } if ( .@count ) { getitem 7146,.@count; getitem 30004,SIEGEPOINTS*100; set SIEGEPOINTS,0; } } } end;
  2. prontera,155,181,5 script Sample#vip 4_F_KAFRA1,{ if ( vip_status(0) ) { mes "You're VIP."; } else { mes "Buy VIP ?"; .@i = select( .vip_day[0] + " Days", .vip_day[1] + " Days", .vip_day[2] + " Days" ) - 1; mes "VIP "+.vip_day[.@i]+" Days"; mes "Cost: "+.vip_cashpoint[.@i]+" or "+.vip_pod[.@i]+"x "+getitemname( .pod_id ); if ( select( "Pay by CashPoint","Pay by "+getitemname( .pod_id ) ) == 1 ) { if ( #CASHPOINT < .vip_cashpoint[.@i] ) { mes "Not enough cash point."; } else { #CASHPOINT -= .vip_cashpoint[.@i]; vip_time ( .vip_day[.@i] * 1440 ); } } else { if ( countitem( .pod_id ) < .vip_pod[.@i] ) { mes "Not enough "+getitemname( .pod_id ); } else { delitem .pod_id,.vip_pod[.@i]; vip_time ( .vip_day[.@i] * 1440 ); } } } close; OnInit: .pod_id = 7179; setarray .vip_day,7,14,30; setarray .vip_cashpoint,4000,7000,10000; setarray .vip_pod,4000,7000,10000; end; } you can try something like this.
  3. You are missing the SQL upgrades since August 14..... At least try to take a look in sql-files/upgrades and apply all the changes that you're missing. sql-files/upgrades/upgrade_20160814.sql sql-files/upgrades/upgrade_20160814_log.sql sql-files/upgrades/upgrade_20161013.sql sql-files/upgrades/upgrade_20161116.sql if the issue still exist, that's mean you have did it wrongly. Recheck all the things...
  4. sql-files/upgrades/upgrade_20160814.sql
  5. mes "[Suhnbi]"; mes "Clang! Clang! Clang!"; if (getequippercentrefinery(.@part) > rand(100) || getequippercentrefinery(.@part) > rand(100)) { successrefitem .@part; next; emotion e_no1; mes "[Suhnbi]"; mes "There you go! It's done."; mes "It's been a while since I've made such a fine "+((getequipweaponlv(.@part))?"weapon":"armor")+". You must be happy because it has become stronger!"; close; } failedrefitem .@part; next; emotion (!rand(5))?e_cash:e_omg; mes "[Suhnbi]"; mes "Uuuuuuuuuummmmmph!!!"; next; mes "[Suhnbi]"; mes "..."; mes "....."; mes ".......Huhuhuhuhu~"; mes "........It was your choice and my ability, no regret."; close; change to mes "[Suhnbi]"; mes "Clang! Clang! Clang!"; successrefitem .@part; next; emotion e_no1; mes "[Suhnbi]"; mes "There you go! It's done."; mes "It's been a while since I've made such a fine "+((getequipweaponlv(.@part))?"weapon":"armor")+". You must be happy because it has become stronger!"; close;
  6. check your clientinfo.xml settings, see what's the file name that are used for loading screens.
  7. prontera,155,181,5 script Sample 4_F_KAFRA1,{ .@party_id = getcharid(1); if ( .@party_id ) { getpartymember .@party_id; if ( $@partymembercount >= 2 ) { warpparty "payon",0,0,.@party_id; } } end; }
  8. you can try this - script Sample -1,{ OnPCLoginEvent: if (( eaclass() & EAJ_BASEMASK ) == EAJ_ARCHER) { changebase Job_Sniper; } end; }
  9. you can try this prontera,155,181,5 script Sample 4_F_KAFRA1,{ mes "Summon monster?"; if ( select( "Summon Mob","Cancel" ) == 1 ) { monster "this",-1,-1,"Monster",1002,1,.npc_name$+"::OnDie"; hideonnpc .npc_name$; } close; OnInit: .npc_name$ = strnpcinfo(3); end; OnDie: hideoffnpc .npc_name$; // rewards getitem 512,1; getitem 512,2; getitem 512,3; end; }
  10. you can try this. https://pastebin.com/mzrRy5hs
  11. Just add this 2 lines to your npc after they finished the quest. sc_start SC_EXPBOOST,1800000,100; sc_start SC_ITEMBOOST,1800000,100;
  12. check your map-server for errors...
  13. actually the chance of script failing is low because you test with less player. If there are high amount of player, the chance would be increased. All you need is just one or few more char without party keep walking around to reset the variables to fail the warp for other party. it's actually from 10 lines to around 15 lines of changes if you ignore those unnecessary lines.
  14. prontera,155,181,5 script Sample 4_F_KAFRA1,{ mes "Change Kafra Point to Cash Point?"; input .@amount,0,#KAFRAPOINTS; .@amount = ( .@amount / 100 ); if ( .@amount ) { #KAFRAPOINTS -= ( .@amount * 100 ); #CASHPOINTS += .@amount; } mes "Exchanged "+( .@amount * 100 )+" Kafra Point to "+.@amount+" Cash Point."; close; }
  15. yes you put the amount of kafra point in-game when your char talk to NPC.
  16. you didnt add the checking condition for the mvp cards... change if(.@type == 6 && .@id[.@index] == 4001 ) change to if(.@type == 6 && .@id[.@index] == .NoMvp_ids[0][.@i] )
  17. if you're asking for guide to convert to eAthena emulators...read this
  18. .@total_cost += ( (.@price_buy[.@index] ) + 25000000); change to .@total_cost += 25000000;
  19. #KAFRAPOINTS -= .@amount; #CASHPOINTS += .@amount;
  20. npc/merchants/cash_trader.txt npc/custom/quests/quest_shop.txt
  21. OnFawEnChant: delitem2 2589, 1, 1, getarg(3), 0, @card1, @card2, @card3, @card4; getitem2 2589, 1, 1, getarg(3) , 0, @card1, getarg(0), getarg(1), getarg(2); equip 2589; specialeffect2 1019; specialeffect2 98; return; change to OnFawEnChant: if ( !countitem( 2589 ) ) { mes "You dont have the items."; close; } delitem2 2589, 1, 1, getarg(3), 0, @card1, @card2, @card3, @card4; getitem2 2589, 1, 1, getarg(3) , 0, @card1, getarg(0), getarg(1), getarg(2); equip 2589; specialeffect2 1019; specialeffect2 98; return;
  22. morocc,172,249,4 script PvP Arena 1198,{ menu "PvP (Izlude) [" + getmapusers("pvp_y_1-2.gat") + " / 69]",L2, "PvP (Morocc) [" + getmapusers("pvp_y_3-5.gat") + " / 69]",L3; L2: if ((getmapusers("pvp_y_1-2.gat") > 68)&&(getgmlevel() < 1)) goto Lsorry; if ((class==Job_Novice_High)&&(getgmlevel() < 1)) goto Lnoob; if (class==Super_Novice) goto Lnoob; warp "pvp_y_1-2",0,0; close; L3: if (getmapusers("pvp_y_3-5") > 60) callsub S_full; warp "pvp_y_3-5",0,0; close; Lsorry: mes "[PvP Warper]"; mes "Sorry, The PvP Arena is Full."; close; Lnoob: mes "[PvP Warper]"; mes "This place is ^FF0000RESTRICTED^000000 for your class."; close; S_full: mes " "; mes "I'm sorry, this arena is full. Please try again later..."; close; } // PvP Room ---------------------------------------------- morocc,154,113,6 duplicate(PvP Arena) PvP Arena#dl 1198 louyang,225,98,3 duplicate(PvP Arena) PvP Arena#d1 1198 payon,167,234,3 duplicate(PvP Arena) PvP Arena#d1 1198 gonryun,170,142,3 duplicate(PvP Arena) PvP Arena#d1 1198 aldebaran,146,116,3 duplicate(PvP Arena) PvP Arena#d1 1198 ayothaya,161,159,3 duplicate(PvP Arena) PvP Arena#d1 1198 xmas,154,126,3 duplicate(PvP Arena) PvP Arena#d1 1198 turbo_room,112,118,6 duplicate(PvP Arena) PvP Arena#d1 1198
×
×
  • Create New...