Jump to content

Luciar

Members
  • Posts

    177
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Luciar

  1. I could really use some help on this I've searched all available resources and still can't figure this out on my own.
  2. Hi all, I'm trying to create a very basic custom instance to better understand how to use the system. So far I have been able to create an instance and warp the party to the instanced map successfully. However, once one party has started an instance, all other parties get stuck in "Standby" (the instance window pops up saying "[Test Instance] in Standby... Your Standby Priority: 0". When I try to interact with the NPC with the party leader of one of these standby instances, my NPC throws "An unknown error occured." (default/-1 result of the switch(instance_create) function) Here is the script. It loads without error: prontera,157,172,4 script Instance Guy 123,{ .@name$ = "[^0000FFInstance Guy^000000]"; .@partyid = getcharid(1); if(getpartyleader(.@partyid,2) == getcharid(0)) { if(instance_check_party(.@partyid,1,148,150)) { //Party Is OK - 1 member, min lvl 148, max 150 mes .@name$; if(!instance_id(1)) { mes "Would you like to create an instance for your party?"; if(select("Yes") != 1) { close; } } switch(instance_create("Test Instance",.@partyid)) { case -3: mes "I'm sorry, all instances are currently full, please try again later. We appologize for the inconvienence."; close; case -2: mes "There seems to be an issue with your party. Are you in one?"; close; case -4: .@instid = instance_id(1); mes "Your party is currently attached to instance ID#: ^FF0000"+.@instid+"^000000."; break; case 0: case 1: .@instid = instance_id(1); if(instance_attachmap("1@gl_k",.@instid) == "") { instance_destroy .@instid; mes "Instanced failed to attach to map. Instance has been destroyed."; close; } instance_set_timeout 1200000,60000,.@instid; instance_init .@instid; mes "Instance ID#: ^FF0000"+.@instid+"^000000 created for party ^0000FF"+strcharinfo(1)+"^000000."; break; case -1: default: mes "An unknown error occured."; close; } switch(select("Warp me to the instance!")) { case 1: instance_warpall "1@gl_k",123,123,.@instid; default: close; } } else { //Party NOT OK mes .@name$; mes "I'm sorry, you don't meet the requirements of this instance."; close; } } else { mes .@name$; mes "I can only start an instance for a leader of a party."; close; } } Also, if I choose not to be warped to the instance, close the NPC dialogue and talk to the NPC again, it throws the same error (shouldn't it throw -4?) (all of this with the leader of the first instance created) I realize this might not be a scripting error since there are no warnings from the server, but I have reviewed all instancing documentation (wiki, script_commands.txt, and other related forum posts) and can't figure it out D:
  3. This mod needs to be updated again to include the first of the two arguments msg_txt now requires: msg_txt(sd,#) Also, getting error: can_trade_bounded doesn't exist
  4. I would really appreciate a source mod that adds the ability for staff members to block incoming private messages, returning a message to the sender "This GameMaster has elected to refuse Private Messages" (or something). It would be nice if the GM could individually allow specified players to be able to contact him/her. @pm (turns block on/off) @pm <player> (allows/disallows specific player to pm when block is active
  5. The mod needs to be updated again. There's a conflict in pc_groups.h PC_PERM_TRADE_BOUNDED = 0x200000, conflicts with PC_PERM_CHANNEL_ADMIN = 0x200000,
  6. I am aware I can check if an item is signed by using getequipcardid, but I am having trouble thinking of a way to retrieve the name of the signer. Is there any current method to do this? My intention is to write an NPC that can return a string saying "Your item was signed by "+.@signer$ or something similar. Thanks
  7. I'm not 100% sure what you're asking for here, but a NPC that will only warp a GM: set .@mingm,1; //Minimum GM level to use NPC if(getgmlevel() >= .@mingm) { warp "prontera",123,123; } end;
  8. I didn't check through your script for errors, but you can use Freeloop to disable the infinite loop protection. Place freeloop(1); before loops and freeloop(0); afterwards.
  9. Did you run the upgrade SQL queries found in sql-files/upgrades/ when you updated your server?
  10. Hello, I am trying to set up the IP.Content app of Invision Power Suite to function as a bug tracker similar to the one in use here at rAthena. I have figured out some of the basics of database creation etc. using the ACP, but my attempt at a bug tracking database lacks a lot of the functionality I see on rAthena's bug tracker. If someone could point me in the correct direction to the package in use or how to build my own I would be very thankful Running IPB 3.4.2
  11. No, I'm just telling you how to do what you asked. It will work if you follow the correct syntax for getitem2.
  12. Find: while (.@j < getarraysize(getd(".Package"+$itemreward$[.@i+1]))) { getitem getd(".Package"+$itemreward$[.@i+1]+"["+.@j+"]"),getd(".Package"+$itemreward$[.@i+1]+"["+(.@j+1)+"]"); Update with getitem2: getitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};
  13. You could use OnTouch and a conditional warp to allow authorized people to pass through and warp unauthorized players away
  14. If you make the source modifications required to add an additional channel you could use a duplicate of this NPC. But this script alone cannot add additional channels.
  15. Figured out the issue. Thanks for your help!
  16. I'm a little confused by what you're suggesting we do here. The NPC is named LiarDice#Main for sure, and the donpcevent target is set by an array that also contains an element with the correct spelling.
×
×
  • Create New...