Quote:
Originally Posted by pro4never
[...]Also... the remote npc scripter needs to be finished up before beta so we can start letting some members to rapid npc deployment.[...]
|
If you are interested, I have a fully functionnal script system from my old private server. Members will just have to code the NPC with a syntax based on INI File and us, will have to compile the script with a tool for the server. The server read my own script format in binary. Faster then INI... All scripts are stored in a dictionnary and you just have to call the execute function with the right page.
Something like:
Code:
AllScripts[10052].Execute(Client, Control);
Here an example for a conductress.
Code:
;********************
;*****Conductrice****
;********************
[Page0]
Count = 1
Text0 = Où vouslez-vous aller? Je peux vous y téléporter contre 100 argents!
Opt0 = Ville Dragon - 1 : Marché - 2 : Ça ne m'intéresse pas. - 255
Face0 = 1
[Page1]
Count = 2
Req0 = Money >= 100
Rew0 = Money[-100] & Teleport[1011:11:376]
Text1 = Il semble bien que vous n'avez pas assez d'argent!
Opt1 = Ok. - 255
Face1 = 1
[Page2]
Count = 2
Req0 = Money >= 100
Rew0 = Money[-100] & Teleport[1036:307:234]
Text1 = Il semble bien que vous n'avez pas assez d'argent!
Opt1 = Ok. - 255
Face1 = 1
And the list of things already implemented.
public enum Operator : byte
{
Addition = 0, // +
Subtraction = 1, // -
Multiplication = 2, // *
Divison = 3, // /
LessThan = 10, // <
GreaterThan = 11, // >
LessThanOrEqual = 12, // <=
GreaterThanOrEqual = 13,// >=
Equal = 20, // ==
Inequal = 21, // !=
}
public enum RequirementType : byte
{
CurHP = 0,
MaxHP = 1,
CurMP = 2,
MaxMP = 3,
Money = 4,
Exp = 5,
PKPoint = 6,
Job = 7,
StatP = 11,
Model = 12,
Level = 13,
Spirit = 14,
Vitality = 15,
Strength = 16,
Agility = 17,
Hair = 27,
CPs = 30,
InvContains = 100,
InvCount = 101
}
public enum RewardType : byte
{
CurHP = 0,
MaxHP = 1,
CurMP = 2,
MaxMP = 3,
Money = 4,
Exp = 5,
PKPoint = 6,
Job = 7,
StatP = 11,
Model = 12,
Level = 13,
Spirit = 14,
Vitality = 15,
Strength = 16,
Agility = 17,
Hair = 27,
CPs = 30,
AddItem = 100,
DelItem = 101,
Teleport = 102
}