Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. - script Sample -1,{ OnWhisperGlobal: announce strcharinfo(0)+": "+@whispervar0$,0; end; }
  2. why are you deleting the SQL table after it created the sql entries ??? hmm
  3. npcshopitem "exp_team"+.a,.item_id[0],.item_co[0];
  4. tried this ? conf/battle/drops.conf#L143
  5. @Cedie search through your npc folder...
  6. this ? http://subversion.assembla.com/svn/ClientSide/Translation_Project/pre-renewal%20data/
  7. i think it should be SELECT SUM(`zeny`) FROM `char` WHERE `account_id` = "+getcharid(3) anyway..this trick doesnt really work in RO ....since the zeny is limited to 2.1b only...you will get tons of error about zeny overflow in the future ... same topic that made by peopleperson49 and has been discussed last time.
  8. change setarray .@Default[0],13517,1; set .@i, rand(1,.@Total); if (rand(1,100) > getd(".@P"+.@i+"[0]")) { for(set .@j,0; .@j<getarraysize(.@Default); set .@j,.@j+2) { getitem .@Default[.@j], .@Default[.@j+1]; if(!.@k[0]) setarray .@k[0], .@Default[.@j], .@Default[.@j+1]; } } else{ for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } } } into do{ set .@i, rand(1,.@Total); }while( rand(1,100) > getd(".@P"+.@i+"[0]") ); for(set .@j,1; .@j<getarraysize(getd(".@P"+.@i)); set .@j,.@j+2) { getitem getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); if (!.@k[0]) { set .@gz,.@i; setarray .@k[0], getd(".@P"+.@i+"["+.@j+"]"), getd(".@P"+.@i+"["+(.@j+1)+"]"); break; } }
  9. if( .@gz && .@gz <= 10 ) announce "Congratulations! "+strcharinfo(0)+" just received "+getitemname(.@k[0])+" x "+.@k[1]+" from Lotti Girl (prontera 139 173)!",0;
  10. tried this ? db/skill_damage_db.txt
  11. 600 = 6% chance ? or 600 = 600% chance ? 6 = 6% 60 = 60% value should be within 1 ~ 100
  12. // Custom points, if needed: "<variable>","<name to display>" setarray .Points$[0],"$DailyPointsT","Dialy Points"; and....are you sure with this variable ??? $DailyPointsT this variable can be access by everyone .....
  13. under this line src/map/atcommand.c#L2104 try add these if( position == EQP_HAND_L || position == EQP_HAND_R ){ clif_displaymessage( fd,"Both Left Right hand cant be refine." ); return 0; }
  14. i think should be } else getitem .prize, .amount,getcharid(3, @name$);
  15. you can do like this too query_sql( "SELECT COUNT(`nameid`) FROM `cart_inventory` WHERE `char_id` = "+getcharid(0)+" AND `refine` > 10",.@count ); if( .@count ){ mes "please remove all refined item in your cart."; close; }
  16. if you wanna do it this is script.... you have to duplicate the same NPC on all your "0" spot ....1 NPC = 1 coordinate effect ... however, adding Map effects like this should be done through map edit instead of npc script.
  17. if not mistaken i also added it inside this https://rathena.org/board/index.php?/files/file/2987-%7B?%7D/
  18. this is how the current query_sql work .... if you want to remove that warning ..you have to either create you own custom query_sql .. or simply disable it from showing you these warning message in the source part.
  19. set #CASHPOINTS, #CASHPOINTS + .@point_amt; change to getitem 722,.@point_amt; and make your own topic next time !
  20. //Check for 1 Minute if(@minute == 600){ if(@consecutive_hour == 12) {
  21. any screenshot can show for your "Dont Send" ???
  22. perhap you can show your script .... ? you can do like this .. if( query_sql( "SELECT 1 FROM `table` WHERE `column`='xyz'",.@foo ) ){ mes "Query Success"; }else{ mes "Query Failed."; }
  23. you can try https://rathena.org/board/index.php?/files/file/2505-%7B?%7D/
×
×
  • Create New...