Jump to content

sader1992

Content Moderator
  • Posts

    1,658
  • Joined

  • Last visited

  • Days Won

    67

Everything posted by sader1992

  1. how this is different from the official rathena's scripts ?
  2. you should talk to the server owner , and ask him to contact @Functor and ask him about the issue.
  3. - script ANY_MAP_SPAWNER -1,{ function F_SpawnMob { monster getarg(0),0,0,"--ja--",.mobId,1,"ANY_MAP_SPAWNER::OnMyMobDead"; announce "A new mob has spawned!",0; return; } OnInit: .mobId = 1002; setarray .maps$,"prontera","izlude"; for([email protected]=0;[email protected]<getarraysize(.maps$);[email protected]++){ F_SpawnMob(.maps$[[email protected]]); } end; OnMyMobDead: [email protected]$ = strcharinfo(3); announce "The mob has been killed by "+strcharinfo(0)+", wait a hour for the respawn.",0; sleep 3600000; F_SpawnMob([email protected]$); end; } You need to use for loop also after that your timer wont work the way you expect it to, so you replace it with something else the script above work the way you want.
  4. prontera,0,0,0 script Clear-Monsters 444,{ if(!getmapunits(BL_MOB,strnpcinfo(4))){ mes "no monsters in this map!"; end; } [email protected] = 10000000; mes "do you like to clear all the monsters in this map ?"; mes "It will cost you " + F_InsertComma([email protected]) + "z"; if(select("Yes:No") == 2) end; clear; if(Zeny < [email protected]){ mes "you don't have " + F_InsertComma([email protected]) + "z"; end; } Zeny -= [email protected]; killmonsterall(strnpcinfo(4)); mes "Done!"; end; }
  5. prontera,0,0,0 script Clear-Monsters 444,{ [email protected] = 10000000; mes "do you like to clear all the monsters in this map ?"; mes "It will cost you " + F_InsertComma([email protected]) + "z"; if(select("Yes:No") == 2) end; clear; if(Zeny < [email protected]){ mes "you don't have " + F_InsertComma([email protected]) + "z"; end; } Zeny -= [email protected]; killmonsterall(strnpcinfo(4)); mes "Done!"; end; }
  6. conf/import/char_conf.txt login_ip: 127.0.0.1 char_ip: your_ip conf/import/map_conf.txt char_ip: 127.0.0.1 map_ip: your_ip
  7. // Heroes of Vanaheim ==================== //======================================== - script at_veil_cmd -1,{ OnVeilWarp: if(agitcheck() || agitcheck2() || agitcheck3()){ mes "you can't use this command while the WoE is running!"; end; } warp "veil",120,145; end; OnInit: bindatcmd "veil", strnpcinfo(0)+"::OnVeilWarp"; }
  8. 1) no , you will get the source code , and it's up to you to compile it , and set it up , also you wont get a ready to play client , you would have to do this by your self too , however if you follow the guides in the forum , excluding the download time , you can set up a local server in less then 10 min , everything depend on your experience 2) yes , you have to install some kind of sql 3) Always/Never , well , it's hard to tell , you see the updates , if it's a bug , and it would effect your server , you would want to apply it to your server , right ? if it's a public server , you should use git commands always , and you can update your server like once a week , of once a month , the longer the time you wait the more updates you would have to apply, I wouldn't recommend more then a month , however if your server is fully customized , I wouldn't suggest a normal update, in that case , 1st i would suggest to try to get your copy as stabile as possible , by applying fixes only , you would reach a point where most of the fixes on rathena for things that you didn't apply to your server anyway 4) it's a database, so it's very easy again everything depend on your experience , everything could take around 10 minutes or 10 weeks I would just suggest to follow rathena wiki first , and if there is anything you didn't understand , or you are stuck , you can search the forum. Home · rathena/rathena Wiki (github.com)
  9. prontera,0,0,0 script npcccc 444,{ if(!#ONEITEMPERACC){ mes "here is your item"; #ONEITEMPERACC = true; getitem(502,1); }else{ mes "you already got your item"; } end; } if you mean a specific account get 1 item one time prontera,0,0,0 script npcccc 444,{ if(getcharid(3) != 2000000){//account id here mes "your account doesn't match"; end; } if(!#ONEITEMPERACC){ mes "here is your item"; #ONEITEMPERACC = true; getitem(502,1); }else{ mes "you already got your item"; } end; }
  10. if the item is only for vip accounts , you can edit the item script it self to not work if the player is not a vip account, then leave the rented items to disappear on it's own.
  11. get 1 item per any character ? prontera,0,0,0 script npcccc 444,{ if(!ONEITEMPERCHAR){ mes "here is your item"; ONEITEMPERCHAR = true; getitem(502,1); }else{ mes "you already got your item"; } end; } get an item for specific character id ? prontera,0,0,0 script npcccc 444,{ if(getcharid(0) == 1500000){//char id here mes "here is your item"; getitem(502,1); }else{ mes "your character id does not match!"; } end; }
  12. if anyone have anymore question , he can send it to Functor in the PM.
  13. -1: Invalid type. -2: Character/Party/Guild/Clan not found. -3: Instance already exists. -4: No free instances (MAX_INSTANCE exceeded).
  14. int64 value = pc_readregistry(sd, reference_uid(add_str("VARIABLE"), 0)); 0 = THE Index if you are using array , if not leave it 0
  15. well , it's all about how you use the os you need to know the basic like how to install programs , check the programs configuration , permissions , and files management there is no direct guide because you don't see how to "install a program" guide for windows, and you don't need that guide because I would assume "you just know how" even if there is some useless guides like that , each program have it's own things so you need to learn the basic and follow this Install on Debian · rathena/rathena Wiki (github.com) I recommend debian 9 for the high payment for who installed your server , well it's normal I don't think you would ask bill gates to install windows in your pc for one or two digit USD xD it's the nerds tax
  16. [8000] = { unidentifiedDisplayName = "Scarf", unidentifiedResourceName = "Scarf", unidentifiedDescriptionName = { "..." }, identifiedDisplayName = "Scarf", identifiedResourceName = "Scarf", identifiedDescriptionName = { "Item Custom Nidhoggur.", "Class:^6666CC Costume^000000", "Location:^6666CC Lower headgear^000000", "Weight:^006600 100^000000", "Level Requirement:^006600 1^000000", "Jobs:^6666CC All^000000" }, slotCount = 1, ClassNum = 1882 },
  17. drop sprite/icon/collection and the line in the item info should not start with _
  18. also the player must be online try this prontera,150,114,4 script God Connection 811,{ mes "You can bring to life a old friend if you have a God item gift."; if(select("use:close") == 2) end; input [email protected]$; getunits(BL_PC,[email protected]$); if(inarray([email protected]$,[email protected]$) == -1){ mes "Player does not exist or offline"; mes "Player must be online!"; end; } if(countitem(6293) < 1){ mes "you don't have " + getitemname(6293); mes "you need 1 " + getitemname(6293); end; } if(atcommand("@unjail "[email protected]$)){ delitem 6293,1; mes "your friend is now released!"; end; } mes "something went wrong!"; mes "contact the GM!"; end; }
  19. it's not a good idea to delete items directly from the database also it's better if the server was offline when you edit the database
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.