Sign in to follow this  
smeli

Share 32Bit C1 Server

567 posts in this topic

MimisK    0
1 hour ago, steve said:

You want remove, when you hit any gatekeeper, html open and gk says, stop attack go jail bla bla and have chance to teleport to that "sucks" jail?

I found this:

Go to ai.obj and search this line: class teleporter : default_npc

then, remove the "handler 1    //  ATTACKED" full

This:


handler 1	//  ATTACKED
	variable_begin
		"attacker"
		"damage"
		"skill_name_id"
		"i0"
		"i1"
		"c1"
		"myself"
		"_choiceN"
		"_code"
		"_from_choice"
	variable_end

	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	push_reg_sp
	fetch_i
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	fetch_i
	push_const 1
	add
	assign
	shift_sp -1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai1
	push_const 2340
	add
	fetch_i
	push_const 0
	equal
	branch_false L3588
L3587
	shift_sp 1
	push_const 11012
	push_parameter delaytime
	func_call 28	//  func[AddTimerEx]
	shift_sp -2
	shift_sp -1
L3588
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai1
	push_const 2340
	add
	push_reg_sp
	fetch_i
	push_const 1
	assign
	shift_sp -1
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	fetch_i
	push_const 10
	greater
	branch_false L3590
L3589
	push_event	//  myself
	push_const 28
	add
	fetch_i	//  i_ai0
	push_const 2336
	add
	push_reg_sp
	fetch_i
	push_const 0
	assign
	shift_sp -1
	shift_sp 1
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	push_const 115016
	negate
	push_const 179224
	negate
	push_const 6752
	negate
	func_call 46	//  func[InstantTeleport]
	shift_sp -4
	shift_sp -1
	jump L3591
L3590
	push_event	//  c1
	push_const 276
	add
	push_reg_sp
	fetch_i
	push_event	//  attacker
	push_const 36
	add
	fetch_i
	assign
	shift_sp -1
	shift_sp 1
	push_event	//  c1
	push_const 276
	add
	fetch_i
	push_const 1926
	func_call 44	//  func[ShowSystemMessage]
	shift_sp -2
	shift_sp -1
L3591
handler_end

Save and check it :)

Keep it simple. Just edit ai_script.txt and compile again the ai.obj 

Share this post


Link to post
Share on other sites
steve    0
14 minutes ago, MimisK said:

Keep it simple. Just edit ai_script.txt and compile again the ai.obj 

yes, but the owned of this pack only said: core edit and why u need delete this, girls must be protected, bla bla etc etc

Some ppl wanna remove that "stupid" feature.

here its the solution :)

Share this post


Link to post
Share on other sites
MimisK    0
9 minutes ago, steve said:

yes, but the owned of this pack only said: core edit and why u need delete this, girls must be protected, bla bla etc etc

Some ppl wanna remove that "stupid" feature.

here its the solution :)

Tha i say and me.... ai_script = ai.obj decompiled. Is more easy to edit the ai_script from ai.obj. 

Ps. I didnt like the "stupid". Just remove it. Smeli has made too many work and share it to all for free. And gives the sources files.I have remove many things

Share this post


Link to post
Share on other sites
Natzugen    0

Using C2 Client + Patch your patch for c2. Installed all updates from topic.

Issue: I can connect to the server. But after connecting to character lobby it says Protocol version is different. Please continue. 

Screenshot_2.png.dd6b5449cb1b52caabf073ba878891b0.png

Edited by Natzugen

Share this post


Link to post
Share on other sites
Rayduxz    0
14 hours ago, Natzugen said:

Using C2 Client + Patch your patch for c2. Installed all updates from topic.

Issue: I can connect to the server. But after connecting to character lobby it says Protocol version is different. Please continue. 

Screenshot_2.png.dd6b5449cb1b52caabf073ba878891b0.png

I've got exactly the same problem.

Share this post


Link to post
Share on other sites
smeli    5
On 9/17/2017 at 1:39 PM, steve said:

Hey guys, maybe u can help me.

 

Where i can edit locations of offline shop allowed? i dont found any location in Areadata.txt, maybe ai.obj?

 

extender source

 

        int tradetype = trade_zone_check_e(CSharedDat->x, CSharedDat->y); //check allowed trade zones

 

 

>>>Issue: I can connect to the server. But after connecting to character lobby it says Protocol version is different. Please continue. 

 

this server supports all clients, and all client have different protocols. for example:

478, 485 - c2

530,555,560 c3

732,737,740,744,746 interlude

12 gracia

530 (again) Lindvior

109 grand crusade

and so on..............

 

to support them - server must accept all those clients

you can just ignore this message

 

--

also if you have 100+ clients you never know which client you're using

message on server shows at least protocol of your client

 

 

 

 

 

 

 

 

 

 

 

 

 

Edited by smeli

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this