Jump to content

sader1992

Content Moderator
  • Posts

    1678
  • Joined

  • Last visited

  • Days Won

    72

Everything posted by sader1992

  1. well , it's better to say what is the problem even if you don't get an error
  2. copy your rAthena folder from your host , and read any guide on how to install rAthena offline , and use your folder instead from git for the sql , you can export it from your online database , and use it offline there is no real short answer to that , you just need to follow a guide using your pre-made files and databases
  3. why up ? it's a problem from 2014 do you have the same problem ?
  4. you need to add information on the topic don't take it so personally , but there is no different between your topic or something like (create a topic titled "server error" and the body is "read the title") you are free to open a new topic with full information about what the errors/your setting are
  5. GroupID,ItemID,Rate{,Amount,Random,isAnnounced,Duration,GUID,isBound,isNamed} doc: https://github.com/rathena/rathena/blob/master/doc/item_group.txt ref: https://github.com/rathena/rathena/blob/master/db/pre-re/item_giftbox.txt
  6. there is no fully functioning C# read/write grf library as i am aware i would suggest you start from that searching for one or making one , if you could do this , the rest would be easy this might help you https://github.com/arminherling/GRF
  7. please stay cool and don't go off-topic stay on the topic or we would be forced to lock this post if you found your answer , please mark it as an answer and if you have another question , open a new topic with that question if it's a personal question , you can ask the person in the private messages if he agree to contact you (i am talking about all who are moving off-topic)
  8. try this prontera,0,0,0 script daily_warper 444,{ if(LASTENTERTIME > gettimetick(2)){ mes "you can enter once every 24hr"; mes "come back after " + gettimestr("%Y-%m/%d %H:%M:%S",21,LASTENTERTIME); end; } LASTENTERTIME = gettimetick(2) + (60*60*24); warp "payon",0,0; end; }
  9. technically this script wont work i would suggest to not use .@var with addrid command
  10. - script MvP_Kill -1,{ OnNPCKillEvent: .@checkmvp = compare(.MvPID$,""+killedrid); if( .@checkmvp ) { if( !.Chance || (.Chance && .Chance > rand(10000)) ) if(.limit > .limit_drop){ getitem .Reward, 1; .limit_drop++; } } end; OnClock0000: .limit_drop = 0; end; OnInit: .limit = 100; //100 drop per day .Chance = 1000; // 1000 = 10%, 0 = turn off chance drop mode, 100% drop .MvPID$ = "1511,1734,1492,1647,1785,1630,1399,1039,1874,"+ "1251,2068,1272,1719,1046,1389,1112,1115,1957,1418,1871,1252,1768,"+ "1086,1688,1646,1373,1147,1059,1150,1956,2022,1087,"+ "1190,1038,1157,1159,1502,1623,1650,1583,"+ "1708,1312,1751,1685,1648,1917,1658"; // MvP Ids .Reward = 7227; // Reward Item ID end; }
  11. i uploaded a new version , so it's in the approval process it will be available soon
  12. make sure the packet version is current make sure the ports are open make sure the ip of each program like this conf/import/char_conf.txt login_ip: 127.0.0.1 char_ip: public_ip conf/import/map_conf.txt char_ip: 127.0.0.1 map_ip: public_ip make sure to check your clientinfo xml file check your subnet config and
  13. unfortunately , i can't understand the script above try this , no need for the functions i linked above prontera,0,0,0 script qqqqqq 444,{ //to prevent spamming sql requests >>>> //this will reset on the user login, but no problem with that if(!@reward_for_first_50) @reward_for_first_50 = true; else{ mes "didn't you talk to me like a moment ago ?"; end; } //<<<<<<<<<<<<<<<<<<<<<<<<<<<< query_logsql("SELECT `ip`,`unique_id` FROM `reward_for_first_50` ", .@ip$, .@unique_id$); for(.@i=0;.@i<getarraysize(.@ip$);.@i++){ if(getcharip() == .@ip$[.@i]) .@got = true; } for(.@i=0;.@i<getarraysize(.@unique_id$);.@i++){ if(get_unique_id() == .@unique_id$[.@i]) .@got = true; } if(!.@got){ if($REWARDS1 < 50){ //the rewards here! //------------ getitem 502,1; //------------ query_logsql("INSERT INTO `reward_for_first_50` (`ip`,`unique_id`) VALUES ('" + getcharip() + "','" + get_unique_id() + "')"); $REWARDS1++; mes "you got the reward"; end; } mes "you missed the reward";//50 player already got the reward end; } mes "you already got the reward"; end; OnInit: query_logsql("CREATE TABLE IF NOT EXISTS `reward_for_first_50` (`ip` varchar(100) NOT NULL default '',`unique_id` INT( 11 ) UNSIGNED NOT NULL DEFAULT '0') ENGINE=MyISAM"); end; } but i would suggest that you remove the npc when you are done with it. i am not sure what this npc does but at least the first 2 lines are like this - script VIP GRATIS -1,{ OnTouch: if(gepard_int_get("newbie_reward")) end; //the player already have newbie_reward true , so end the script here. gepard_int_set("newbie_reward",true); //the player does not have newbie_reward true , so set it to true and move on with the script. query_sql "UPDATE `login` SET `diasvip` = `diasvip`+'1', `level` = '1' WHERE `account_id` = '"+getcharid(3)+"'"; dispbottom "Você acaba de ganhar vip grátis."; end; }
  14. try to apply it manually , or you can send me your map.cpp along with the file you downloaded from rathena in the discord or rathena messages .
  15. if you want an easy and fast way , you can use this functions i made a while ago
  16. try this prontera,156,186,4 script stest 857,{ setarray .@indices,EQI_ACC_L,EQI_ACC_R, EQI_SHOES,EQI_GARMENT, EQI_HEAD_LOW,EQI_HEAD_MID, EQI_HEAD_TOP,EQI_ARMOR,EQI_HAND_L ,EQI_HAND_R, EQI_COSTUME_HEAD_TOP,EQI_COSTUME_HEAD_MID, EQI_COSTUME_HEAD_LOW,EQI_COSTUME_GARMENT, EQI_SHADOW_ARMOR,EQI_SHADOW_WEAPON, EQI_SHADOW_SHIELD,EQI_SHADOW_SHOES, EQI_SHADOW_ACC_R,EQI_SHADOW_ACC_L; for(.@i = 0;.@i < getarraysize(.@indices);.@i++){ if (getequipisequiped(.@indices[.@i])) { set .@menu$, .@menu$ + F_getpositionname(.@indices[.@i]) + "-[" + getequipname(.@indices[.@i]) + "]"; set .@equipped,1; } set .@menu$, .@menu$ + ":"; } if (.@equipped == 0) { mes "[Suhnbi]"; mes "I don't think I can refine any items you have..."; close; } set .@part, .@indices[ select(.@menu$) ]; if (!getequipisequiped(.@part)) { message strcharinfo(0), "Make sure you're wearing the equipment first."; end; } // Enchant stones setarray .@enchant_slot1[0],4710,4711,4720,4721; //Inteligence1,Inteligence2,Dexterity1,Dexterity2 setarray .@enchant_slot2[0],4711,4720,4721,4740; //Inteligence2,Dexterity1,Dexterity2,Vitality1 setarray .@enchant_slot3[0],4764,4799,4766,4788; //Critical5,HP500,Atk2,Mdef6 // Random .@enchant_1 = .@enchant_slot1[rand(getarraysize(.@enchant_slot1))]; .@enchant_2 = .@enchant_slot2[rand(getarraysize(.@enchant_slot2))]; .@enchant_3 = .@enchant_slot3[rand(getarraysize(.@enchant_slot3))]; // Get current refine to keep refine .@equip_refine = getequiprefinerycnt(.@part); // Get current card to keep card setarray .@equip_card[0], getequipcardid(.@part,0),getequipcardid(.@part,1),getequipcardid(.@part,2),getequipcardid(.@part,3); // Delete item delitem .@item_to_test,1; // Cotton Shirt [1] // Can break armor? if (rand(100) < 50) { specialeffect2 EF_SUI_EXPLOSION; message strcharinfo(0),"Oh Shit!"; end; } else { // Effect specialeffect2 EF_REPAIRWEAPON; emotion ET_BEST; // Get a new item getitem2 .@item_to_test,1,1,.@equip_refine,0,.@equip_card[0],.@enchant_1,.@enchant_2,.@enchant_3; message strcharinfo(0),"Yay!"; } end; }
  17. mac ? if you have GePard this should work prontera,0,0,0 script qqqqqq 444,{ if(inarray($UNIQUEIDLIST_REWARDS1$,get_unique_id()) == -1 && inarray($IPLIST_REWARDS1$,getcharip()) == -1 ){ if($REWARDS1 < 50){ //the rewards here! //------------ getitem 502,1; //------------ $UNIQUEIDLIST_REWARDS1$[getarraysize($UNIQUEIDLIST_REWARDS1$)] = get_unique_id(); $IPLIST_REWARDS1$[getarraysize($IPLIST_REWARDS1$)] = getcharip(); $REWARDS1++; mes "you got the reward"; end; } mes "you missed the reward";//50 player already got the reward end; } mes "you already got the reward"; end; }
  18. try this https://github.com/rathena/rathena/pull/4383/files this sometimes happen when player forced to deattach from a npc for example , if the player die while talking to a npc , and the npc have more auto progress , you can ignore it if your scripts have to bugs
  19. use this https://gitlab.com/4144/Nemo/ as it still have support don't use other versions
  20. did you try nemo patch ? also you can force the player in a map using the client side file named viewpoint or something
  21. i don't see anything wrong with the script i wrote if there is something wrong , you need to add information on what wrong as you can see in the file , the pvp points are PVPPOINTSYSTEM variable you can make sure that everything work by simply checking the points for example prontera,0,0,0 script test 444,{ mes "" + PVPPOINTSYSTEM; end; }
  22. there is 2 in the script , not one change the other one too
  23. getmapxy .@map$, .@x, .@y, 0; to getmapxy .@map$, .@x, .@y, BL_PC;
×
×
  • Create New...