Jump to content
  • 0

Some issues


Eddy_89k

Question

Hello guys, i got 3 issues i need some help uppon.

 

1.) Im trying to edit the movement locations of "scribe_leandro" (the npc that walks in Talking Island etc)... for example im trying to make him to move in other city - not in Talking Island.I know the paths he is following is located in "SuperPoint.bin" (i think) , but how can i edit that ? Or if there is another way to edit his movement paths please tell me.

 

2.)Also if someone knows where to edit the Four Sepulchers to start only on custom hours, please enlighten me.

 

3.)The 3rd issue is kinda tricky. Got a issue with some AI code, im trying to set the "TestNpc" that has the functions of increasing CRP and Level to 80 to give those services CRP/LVL by a certain item and amount.

This is the "TestNpc" code :

class 1 TestNpc : citizen
handler 3 14	//  TALKED
variable_begin
	"talker"
	"myself"
	"_choiceN"
	"_code"
	"_from_choice"
variable_end

push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
S881.	"test_npc.htm"
push_string S881
func_call 184680516	//  func[showPage]
shift_sp -2
shift_sp -1
exit_handler
handler_end

handler 32 123	//  MENU_SELECTED
variable_begin
	"talker"
	"ask"
	"reply"
	"myself"
	"_choiceN"
	"_code"
	"_from_choice"
variable_end

push_event	//  ask
push_const 160
add
fetch_i4
push_const 1
equal
branch_false L2
L1
push_event	//  reply
push_const 164
add
fetch_i4
push_const 1
equal
branch_false L4
L3
push_event	//  gg
push_const 632
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 1
func_call 218234898	//  func[setPCLevel]
shift_sp -2
shift_sp -1
jump L5
L4
push_event	//  reply
push_const 164
add
fetch_i4
push_const 2
equal
branch_false L7
L6
push_event	//  gg
push_const 632
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 80
func_call 218234898	//  func[setPCLevel]
shift_sp -2
shift_sp -1
L7
L5
jump L8
L2
push_event	//  ask
push_const 160
add
fetch_i4
push_const 2
equal
branch_false L10
L9
push_event	//  gg
push_const 632
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 3
func_call 218234899	//  func[AddPCSocial]
shift_sp -2
shift_sp -1
jump L11
L10
push_event	//  ask
push_const 160
add
fetch_i4
push_const 3
equal
branch_false L13
L12
push_event	//  gg
push_const 632
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 10000
func_call 218234900	//  func[updatePledgeNameValue]
shift_sp -2
shift_sp -1
jump L14
L13
push_event	//  ask
push_const 160
add
fetch_i4
push_const 4
equal
branch_false L16
L15
push_event	//  gg
push_const 632
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 2500
negate
func_call 218234900	//  func[updatePledgeNameValue]
shift_sp -2
shift_sp -1
L16
L14
L11
L8
handler_end

class_end

 

And i was trying to make it work like this code :

class 1 quest_tool : citizen
parameter_define_begin
int noblessItemId 57
int noblessItemCount 1000
int subjobItemId 57
int subjobItemCount 1000
parameter_define_end
handler 3 14	//  TALKED
variable_begin
	"talker"
	"myself"
	"_choiceN"
	"_code"
	"_from_choice"
variable_end

push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
S881.	"quest_tool_001.htm"
push_string S881
func_call 184680516	//  func[showPage]
shift_sp -2
shift_sp -1
exit_handler
handler_end

handler 32 380	//  MENU_SELECTED
variable_begin
	"ask"
	"reply"
	"talker"
	"myself"
	"_choiceN"
	"_code"
	"_from_choice"
variable_end

push_event	//  ask
push_const 160
add
fetch_i4
push_const 123
equal
branch_false L2
L1
push_event	//  reply
push_const 164
add
fetch_i4
push_const 1
equal
branch_false L4
L3
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 235
func_call 184680554	//  func[GetOneTimeQuestFlag]
shift_sp -2
push_const 1
less
push_reg_sp
fetch_i
branch_false L7
push_event	//  talker
push_const 40
add
fetch_i	//  level
push_const 1092
add
fetch_i4
push_const 74
greater
and
L7
branch_false L6
L5
push_parameter subjobItemId
push_const 0
equal
push_reg_sp
fetch_i
branch_true L10
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_parameter subjobItemId
func_call 184680579	//  func[OwnItemCount]
shift_sp -2
push_parameter subjobItemCount
greater_equal
or
L10
branch_false L9
L8
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 1110785
push_const 0
push_const 0
push_const 1000000
func_call 184877074	//  func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 235
push_const 1
func_call 184746091	//  func[setOneTimeQuestFlag]
shift_sp -3
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
S882.	"ItemSound.quest_finish"
push_string S882
func_call 184680685	//  func[soundEffect]
shift_sp -2
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
S883.	"quest_tool_002.htm"
push_string S883
func_call 184680516	//  func[showPage]
shift_sp -2
shift_sp -1
push_parameter subjobItemId
push_const 0
greater
branch_false L12
L11
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_parameter subjobItemId
push_parameter subjobItemCount
func_call 184746114	//  func[DeleteItem1]
shift_sp -3
shift_sp -1
L12
jump L13
L9
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
S884.	"quest_tool_003.htm"
push_string S884
func_call 184680516	//  func[showPage]
shift_sp -2
shift_sp -1
L13
jump L14
L6
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
S885.	"quest_tool_004.htm"
push_string S885
func_call 184680516	//  func[showPage]
shift_sp -2
shift_sp -1
L14
L4
push_event	//  reply
push_const 164
add
fetch_i4
push_const 2
equal
branch_false L16
L15
push_event	//  talker
push_const 40
add
fetch_i	//  nobless_type
push_const 156
add
fetch_i4
push_const 0
equal
push_reg_sp
fetch_i
branch_false L19
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 247
func_call 184680554	//  func[GetOneTimeQuestFlag]
shift_sp -2
push_const 1
less
push_reg_sp
fetch_i
branch_false L20
push_event	//  talker
push_const 40
add
fetch_i	//  level
push_const 1092
add
fetch_i4
push_const 74
greater
and
L20
and
L19
branch_false L18
L17
push_parameter noblessItemId
push_const 0
equal
push_reg_sp
fetch_i
branch_true L23
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_parameter noblessItemId
func_call 184680579	//  func[OwnItemCount]
shift_sp -2
push_parameter noblessItemCount
greater_equal
or
L23
branch_false L22
L21
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 7694
push_const 1
func_call 184746111	//  func[GiveItem1]
shift_sp -3
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
S886.	"ItemSound.quest_finish"
push_string S886
func_call 184680685	//  func[soundEffect]
shift_sp -2
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
S887.	"quest_tool_005.htm"
push_string S887
func_call 184680516	//  func[showPage]
shift_sp -2
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 247
push_const 1
func_call 184746091	//  func[setOneTimeQuestFlag]
shift_sp -3
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_const 1110785
push_const 0
push_const 0
push_const 1000000
func_call 184877074	//  func[AddUseSkillDesire]
shift_sp -5
shift_sp -1
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
func_call 184615315	//  func[setNobless]
shift_sp -1
shift_sp -1
push_parameter noblessItemId
push_const 0
greater
branch_false L25
L24
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
push_parameter noblessItemId
push_parameter noblessItemCount
func_call 184746114	//  func[DeleteItem1]
shift_sp -3
shift_sp -1
L25
jump L26
L22
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
S888.	"quest_tool_003.htm"
push_string S888
func_call 184680516	//  func[showPage]
shift_sp -2
shift_sp -1
L26
jump L27
L18
push_event	//  myself
push_const 704
add
fetch_i
push_event	//  talker
push_const 40
add
fetch_i
S889.	"quest_tool_004.htm"
push_string S889
func_call 184680516	//  func[showPage]
shift_sp -2
shift_sp -1
L27
L16
L2
call_super
handler_end

class_end

This code allows a player to obtain subclass/nobless ability for a certain amount of adena, i would like to make the same method for the TestNpc AI code to give CRP and Level 80 for a certain item/amount. Having a hard time doing it...untill now no success.

 

Can anyone help me in these matters ? I cannot figure out what im doing wrong all my tests for the moment are without success.

Im still learning alot and i would apreciate some professional words, please refrain yourselfs of flamish words.

Thank you.

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I recommend you learn abit before just being a pussy and asking for help because it's requires 2 minutes of thinking in general....

 

1. Superpoint has an internal format - research it or pesker someone that bothered.

I can't remember if anyone did tho - probably not outside closed sources.

I don't deem you the research type - so your a tad outa luck here.

 

2. AI. Go research. Find the archetype AIs and maker classes for 4s - look at script event code and find the timing checks. Change numbers to match desired "run time".

 

 

 

3.

Thirdly, your comparing your own GF AI vs C4 AI.

 

Showpage GF: 235012165

Showpage C4: 184680516

 

Your first part contains functions only availeble in GF and therefor it is not possible to use those functions in AI script.

(AddPCSocial, SetPCLevel, UpdatePledgeNameValue - but ironicly you use C4 offsets\ids for vars\functions ala showpage).

There is no public GF compiler\decompiler - and since everyone is a n00b i'm geussing you bought a GF pack that fixes the few errors GF has.

Ask in the forum there for a compiler\decompiler.

 

 

Fourthly - there are no differences between structure of GF vs C4 ai stack - they're identical.

Only changes are possible params to functions and IDs.

 

 

If your smart youll check all functions in your given c4 code for changes in GF - and move them to GF IDs (With corresponding extra params if neccesary).

This is time consuming - but only option short of using the online compiler crap kation\denis\fr3d deliver.

 

That or actually learning AI Stack by itself - it's not that complex if you "cheat copy pasta" checks and function calls.

 

 

 

Link to comment
Share on other sites

  • 0

oh n00b me - i forgot anarchy even publicly shared it.

 

http://maxcheaters.com/forum/index.php?topic=183383.0

 

Freya Info(which works for c4) on the superpoint structure.

Link to comment
Share on other sites

  • 0

Sighed im a newbie regarding this, as i said im still learning stuff :) I just wanted some tip or a start point.

 

And Bigmac , at point one : I already solved this issue, was not hard, just a bit of google.

At point two : Under testing atm, some success...still under work.

At point three : Actually im using Vanganth latest IL files, and i do not have any complier/decomplier... and i still got no success in doing the AI code to match my previous one. Still looking for some help in this matter, if you got the knowledge to give me some tips in how to do the modification to fit my purpose i would apreciate it.

Once again i repeat, im new at this and im learning day by day :)

Link to comment
Share on other sites

  • 0

If you are using Vanganth files, which are C4 based, you should find the AI / Quest Development Kit from smeli, it has the tools needed to work with, as for SuperPoint, i think i wrote a buggy editor, is on a HDD just need to find which one, i made some cleanup and im not sure if i still have it.

Link to comment
Share on other sites

  • 0

If you are using Vanganth files, which are C4 based, you should find the AI / Quest Development Kit from smeli, it has the tools needed to work with, as for SuperPoint, i think i wrote a buggy editor, is on a HDD just need to find which one, i made some cleanup and im not sure if i still have it.

Going to try to find the kit from smeli, once im home.

If you could find that editor and upload i would apreciate it.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • not just a waste of time ..even waste of money ...  
    • Heya! I was looking for someone who can provide me with any solution for FPS increase on Interlude Client. I was interested in a working Clear Cache button and/or any patch that will increase the FPS of each player. Playing on Interlude for many years now, I can understand that a crowded place will drop your FPS by a lot which is making the game unplayable and unenjoyable. For example, Baium Epic Boss always had issues (not only) with FPS drops sometimes players are playing with pixels (images). If anyone has the expertise and knowledge about those things I would like him to contact me via Discord xthedarknessfear so we can discuss further because I obviously have some questions about Client Modification and how it's done. Will not answer anything here, hit me up on disc and let's discuss it! P.S: I'm also looking for a custom simple interface (small edits). If you can do both, you are my guy! Cheers!
    • //request   Can anyone rework this for aCis 401? personally, one of the best features to have in a L2 server.
    • i have this feature: https://prnt.sc/rD9BYOi7QPB6 there is edited interface and one dll to make it working.
    • Whatever @Tryskell said...   Unfortunately it is not 2005-2010 anymore... Most of the community from those days is "grown up" and probably does not play games anymore (or at least no MMOs). I think anything related to MMOs will be a nail in the coffin.   I understand that it is hard to let the thing you've built for years to "just die". I assume most people got into programming, so maybe you can try something in that direction. But then again, this is a very niche community.   We need to think of something to bring the people together. I think events may be really fun, but then you would probably need to add prizes n order for the people to participate.   So yea, just my 2 cents. Hopefully somebody can come up with some great idea so we can revive this place. I've already forgotten it for the last couple (5-6) years...
  • Topics

×
×
  • Create New...