Skip to content

Instantly share code, notes, and snippets.

View secretdataz's full-sized avatar
💭
I may be slow to respond.

Jittapan Pluemsumran secretdataz

💭
I may be slow to respond.
  • Bangkok, Thailand
  • 09:26 (UTC +07:00)
View GitHub Profile
import greenfoot.*;
/**
* Simple actor that automatically loads a GIF as its idle animation.
*
* @author Jittapan Pluemsumran
* @version 0.1
*/
public class GifActor extends Actor
{
@secretdataz
secretdataz / ip.txt
Created November 22, 2016 11:50
ip
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++)
@secretdataz
secretdataz / instance_compatibility.txt
Last active August 20, 2016 17:40
Instance related commands compatibility layer for scripts from other emulators.
//===== rAthena Script =======================================
//= Instance related commands compatibility layer.
//===== By: ==================================================
//= Secret
//===== Compatible With: =====================================
//= rAthena Project
//===== Changelog: ===========================================
//= 1.0 First version [Secret]
//============================================================
@secretdataz
secretdataz / questprogress_dotcforsyntaxhilight.c
Last active August 19, 2016 14:13
questprogress for rAthena for compatibility with emulator with different architecture™.
//////////////////////////////////////////////////////////////////////////////////
//
// 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)
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;
@secretdataz
secretdataz / PunchingBag.txt
Created May 19, 2016 15:32
rAthena punching bag with DPS counter.
//===== rAthena Script =============================================
//= Punching Bag NPC
//===== By: ========================================================
//= Secretdataz
//===== Current Version: ===========================================
//= 0.1
//===== Changelog: =================================================
//= 0.1 Initial commit
//===== Compatible With: ===========================================
//= rAthena Project
- script TestCase1 -1,{
OnWhisperGlobal:
dispbottom "Case1aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa : asd";
}
- script TestCase2 -1,{
OnWhisperGlobal:
dispbottom "Case2aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa asd";
}
#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;
}
OnInit:
setarray .mes$[0],"Mes1","Mes2","Mes3","....";
initnpctimer;
end;
OnTimer60000:
.@r = rand(getarraysize(.mes$));
npctalk strnpcinfo(1) + " : " + .mes$[.@r];
initnpctimer;
end;