This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import greenfoot.*; | |
/** | |
* Simple actor that automatically loads a GIF as its idle animation. | |
* | |
* @author Jittapan Pluemsumran | |
* @version 0.1 | |
*/ | |
public class GifActor extends Actor | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guild_vs2-2,0,0,0 script abcde#5 -1,{ | |
end; | |
OnPCLoadMapEvent: | |
.@amap$ = strcharinfo(3); | |
query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@LastIp$); | |
query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@LastIp$+"'", .@AccountId); | |
.@aidtemp = getcharid(3); | |
detachrid; | |
.@sz = getarraysize(.@AccountId); | |
for(.@i = 0; .@i < .@sz; .@i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test gist please ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//===== rAthena Script ======================================= | |
//= Instance related commands compatibility layer. | |
//===== By: ================================================== | |
//= Secret | |
//===== Compatible With: ===================================== | |
//= rAthena Project | |
//===== Changelog: =========================================== | |
//= 1.0 First version [Secret] | |
//============================================================ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////////////////////////////////////////// | |
// | |
// Another variant of `checkquest` script command for compatibility with | |
// scripts from other emulators that use `questprogress`. | |
// (This does not ensure 100% compatibility due to different architecture™. /s) | |
// | |
// *questprogress(<ID>{,PLAYTIME|HUNTING}) | |
// | |
// If no additional argument supplied, return the state of the quest: | |
// 0 = Quest not started (not in quest log) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
izlude,124,148,6 script Option Adder 4_F_01,{ | |
for(.@i = 0; .@i < getarraysize(.parts); ++.@i){ | |
.@name$ = getitemname(getequipid(.parts[.@i])); | |
.@menu$ = .@menu$ + (.@name$ == "null" ? "" : .@name$) + ":"; | |
} | |
.@pos = select(.@menu$)-1; | |
dispbottom "Input Index (0-4):"; | |
input .@index; | |
dispbottom "Input ID:"; | |
input .@id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//===== rAthena Script ============================================= | |
//= Punching Bag NPC | |
//===== By: ======================================================== | |
//= Secretdataz | |
//===== Current Version: =========================================== | |
//= 0.1 | |
//===== Changelog: ================================================= | |
//= 0.1 Initial commit | |
//===== Compatible With: =========================================== | |
//= rAthena Project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- script TestCase1 -1,{ | |
OnWhisperGlobal: | |
dispbottom "Case1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa : asd"; | |
} | |
- script TestCase2 -1,{ | |
OnWhisperGlobal: | |
dispbottom "Case2aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa asd"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
BOOL WriteBytes(DWORD dwAddress, LPBYTE lpBuffer, DWORD nBytes) { | |
if (nBytes == 0) { | |
return FALSE; | |
} | |
DWORD dwOldProtect; | |
if (!VirtualProtect((LPVOID)dwAddress, nBytes, PAGE_EXECUTE_READWRITE, &dwOldProtect)) { | |
return FALSE; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OnInit: | |
setarray .mes$[0],"Mes1","Mes2","Mes3","...."; | |
initnpctimer; | |
end; | |
OnTimer60000: | |
.@r = rand(getarraysize(.mes$)); | |
npctalk strnpcinfo(1) + " : " + .mes$[.@r]; | |
initnpctimer; | |
end; |