Browse Source

* Documented @set command from r16123.
* Fixed a waitingroom bug in Wizard job quest (bugreport:7189).
* Fixed getequipname() returning -1 instead of an empty string (bugreport:7186).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17100 54d463be-8e91-2dee-dedb-b68131a5f0ec

euphyy 12 years ago
parent
commit
5b456c67a1
3 changed files with 20 additions and 14 deletions
  1. 9 1
      doc/atcommands.txt
  2. 10 12
      npc/jobs/2-1/wizard.txt
  3. 1 1
      src/map/script.c

+ 9 - 1
doc/atcommands.txt

@@ -3,7 +3,7 @@
 //===== By: ==================================================
 //===== By: ==================================================
 //= rAthena Dev Team
 //= rAthena Dev Team
 //===== Current Version: =====================================
 //===== Current Version: =====================================
-//= 20121223
+//= 20130115
 //===== Description: =========================================
 //===== Description: =========================================
 //= List of available atcommands and their functions.
 //= List of available atcommands and their functions.
 //============================================================
 //============================================================
@@ -1145,6 +1145,14 @@ Reloads the specified configuration file.
 
 
 ---------------------------------------
 ---------------------------------------
 
 
+@set <variable> {<value>}
+
+Changes a player or account variable to the specified value.
+If no value is given, the variable's current value will be displayed.
+Note that the value of a string variable may be typed with or without double quotes.
+
+---------------------------------------
+
 @setbattleflag <flag> <value>
 @setbattleflag <flag> <value>
 
 
 Changes a battle_config flag without rebooting the server.
 Changes a battle_config flag without rebooting the server.

+ 10 - 12
npc/jobs/2-1/wizard.txt

@@ -4,7 +4,7 @@
 //= (Aegis) Translated by yoshiki, converted by kobra_k88
 //= (Aegis) Translated by yoshiki, converted by kobra_k88
 //= Further bugfixed and tested by Lupus
 //= Further bugfixed and tested by Lupus
 //===== Current Version: ===================================== 
 //===== Current Version: ===================================== 
-//= 3.2
+//= 3.3
 //===== Compatible With: ===================================== 
 //===== Compatible With: ===================================== 
 //= rAthena SVN
 //= rAthena SVN
 //===== Description: ========================================= 
 //===== Description: ========================================= 
@@ -26,6 +26,7 @@
 //= 3.0 Added Quest Log commands. [Kisuka]
 //= 3.0 Added Quest Log commands. [Kisuka]
 //= 3.1 Removed the need for use of 'goto.' [L0ne_W0lf]
 //= 3.1 Removed the need for use of 'goto.' [L0ne_W0lf]
 //= 3.2 Modified the quest to renewal. [Vali] (Thanks to Muad_Dib for the necessary info).
 //= 3.2 Modified the quest to renewal. [Vali] (Thanks to Muad_Dib for the necessary info).
+//= 3.3 Fixed waitingroom bug. [Euphy]
 //============================================================ 
 //============================================================ 
 
 
 gef_tower,111,37,4	script	Wizard Guildsman	70,{
 gef_tower,111,37,4	script	Wizard Guildsman	70,{
@@ -1067,11 +1068,9 @@ job_wiz,50,165,4	script	Arena Assistant	700,{
 	mes "Each person may take approximately 5 to 10 minutes.";
 	mes "Each person may take approximately 5 to 10 minutes.";
 	mes "If you would like to leave the arena, please log off anytime.";
 	mes "If you would like to leave the arena, please log off anytime.";
 	close;
 	close;
-}
 
 
-job_wiz,50,165,4	script	Waiting Room#wiz	700,{
 OnInit:
 OnInit:
-	waitingroom "Waiting Room",20,"Waiting Room#wiz::OnStartArena",1;
+	waitingroom "Waiting Room",20,"Arena Assistant::OnStartArena",1;
 	enablewaitingroomevent;
 	enablewaitingroomevent;
 	end;
 	end;
 
 
@@ -1079,7 +1078,6 @@ OnStartArena:
 	killmonsterall "job_wiz";
 	killmonsterall "job_wiz";
 	warpwaitingpc "job_wiz",114,169;
 	warpwaitingpc "job_wiz",114,169;
 	donpcevent "Room of Water::OnEnable";
 	donpcevent "Room of Water::OnEnable";
-	disablenpc "Waiting Room#wiz";
 	disablewaitingroomevent;
 	disablewaitingroomevent;
 	end;
 	end;
 
 
@@ -1180,7 +1178,7 @@ OnTimer185000:
 OnTimer186000:
 OnTimer186000:
 	disablenpc "Room of Water#Failed";
 	disablenpc "Room of Water#Failed";
 	donpcevent "Room of Water::OnDisable";
 	donpcevent "Room of Water::OnDisable";
-	donpcevent "Waiting Room#wiz::OnStart";
+	donpcevent "Arena Assistant::OnStart";
 	end;
 	end;
 }
 }
 
 
@@ -1246,7 +1244,7 @@ OnTimer62000:
 OnTimer63000:
 OnTimer63000:
 	disablenpc "Room of Water#Failed";
 	disablenpc "Room of Water#Failed";
 	donpcevent "Room of Water#Door::OnDisable";
 	donpcevent "Room of Water#Door::OnDisable";
-	donpcevent "Waiting Room#wiz::OnStart";
+	donpcevent "Arena Assistant::OnStart";
 	end;
 	end;
 }
 }
 
 
@@ -1354,7 +1352,7 @@ OnTimer185000:
 OnTimer186000:
 OnTimer186000:
 	disablenpc "Room of Earth#Failed";
 	disablenpc "Room of Earth#Failed";
 	donpcevent "Room of Earth::OnDisable";
 	donpcevent "Room of Earth::OnDisable";
-	donpcevent "Waiting Room#wiz::OnStart";
+	donpcevent "Arena Assistant::OnStart";
 	end;
 	end;
 }
 }
 
 
@@ -1426,7 +1424,7 @@ OnTimer62000:
 OnTimer63000:
 OnTimer63000:
 	disablenpc "Room of Earth#Failed";
 	disablenpc "Room of Earth#Failed";
 	donpcevent "Room of Earth#Door::OnDisable";
 	donpcevent "Room of Earth#Door::OnDisable";
-	donpcevent "Waiting Room#wiz::OnStart";
+	donpcevent "Arena Assistant::OnStart";
 	end;
 	end;
 }
 }
 
 
@@ -1532,7 +1530,7 @@ OnTimer185000:
 OnTimer186000:
 OnTimer186000:
 	disablenpc "Room of Fire#Failed";
 	disablenpc "Room of Fire#Failed";
 	donpcevent "Room of Fire::OnDisable";
 	donpcevent "Room of Fire::OnDisable";
-	donpcevent "Waiting Room#wiz::OnStart";
+	donpcevent "Arena Assistant::OnStart";
 	end;
 	end;
 }
 }
 
 
@@ -1610,7 +1608,7 @@ OnTimer122000:
 OnTimer123000:
 OnTimer123000:
 	disablenpc "Room of Fire#Failed";
 	disablenpc "Room of Fire#Failed";
 	donpcevent "Room of Fire#Door::OnDisable";
 	donpcevent "Room of Fire#Door::OnDisable";
-	donpcevent "Waiting Room#wiz::OnStart";
+	donpcevent "Arena Assistant::OnStart";
 }
 }
 
 
 job_wiz,46,99,0	script	Room of Fire#Failed	-1,16,16,{
 job_wiz,46,99,0	script	Room of Fire#Failed	-1,16,16,{
@@ -1656,7 +1654,7 @@ OnTimer7000:
 
 
 OnTimer9000:
 OnTimer9000:
 	donpcevent "Test Helper#wiz::OnDisable";
 	donpcevent "Test Helper#wiz::OnDisable";
-	donpcevent "Waiting Room#wiz::OnStart";
+	donpcevent "Arena Assistant::OnStart";
 	stopnpctimer;
 	stopnpctimer;
 	end;
 	end;
 }
 }

+ 1 - 1
src/map/script.c

@@ -7414,7 +7414,7 @@ BUILDIN_FUNC(getequipname)
 	i = pc_checkequip(sd,equip[num]);
 	i = pc_checkequip(sd,equip[num]);
 	if( i < 0 )
 	if( i < 0 )
 	{
 	{
-		script_pushint(st,-1);
+		script_pushconststr(st,"");
 		return 0;
 		return 0;
 	}
 	}