Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 03:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help Thread] Please post your questions here.

Discussion on [Help Thread] Please post your questions here. within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old 11/11/2017, 19:35   #6646
 
elite*gold: 0
Join Date: Apr 2017
Posts: 109
Received Thanks: 9
My GS start crashing =(

The last, what i change is updating few contact scripts in NPCResource and trying to create own NPC script on .lua

- contact_script : 'custom_npc_girl_contact()'
- lua script called CustomNpcGirl.lua and code:
PHP Code:
function get_module_name()
             return 
"CustomNpcGirl"
end 

function custom_npc_girl_contact()

dlg_title("Таинственная девочка")
dlg_text("Добро пожаловать в наш скромный магазин")
dlg_menu("Cash shop items list 2""open_market( 'some_market' )" )
dlg_menu("Armor and weapon supplies""armor_and_weapon" )
dlg_menu('Бафнуть себя''buff_player()')
dlg_menu("Пока"'' )
dlg_show()

end

function buff_player()

    
local playerGold get_value('gold')
    
    if 
playerGold >= 1000000
    
    sv
('playerGold''playerGold' 1000000)
    
    
add_state(101318900000)
    
buff_select_player()
    else
    
dlg_text("Подзаработай сначала!")
    
dlg_menu("Пока""")
    
dlg_show()
end 


- GS error:
YuhaBah is offline  
Old 11/11/2017, 21:31   #6647
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
You may want to try lowering the state level and or duration a little bit.

Some states were only designed to go so high and have been known to cause GS crashes when set too high.

Just something to try.
ThunderNikk is offline  
Thanks
1 User
Old 11/11/2017, 21:56   #6648
 
elite*gold: 0
Join Date: Apr 2017
Posts: 109
Received Thanks: 9
Quote:
Originally Posted by ThunderNikk View Post
You may want to try lowering the state level and or duration a little bit.

Some states were only designed to go so high and have been known to cause GS crashes when set too high.

Just something to try.
You a wizard!

But i just try to delete this .lua from GS scripts and it start running!
May be i miss error in script?
YuhaBah is offline  
Old 11/11/2017, 22:12   #6649
 
InkDevil's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 594
Received Thanks: 1,188
@
You should check your functions for missing 'then' and 'end'
And also don't include variables in functions with '

function buff_player()

local playerGold = get_value('gold')

if playerGold >= 1000000 then

sv('gold', playerGold - 1000000) ---deleted your ' here

add_state(1013, 18, 900000)
buff_select_player() ---what does this function calls?
else
dlg_text("Подзаработай сначала!")
dlg_menu("Пока", "")
dlg_show()
end
end
InkDevil is offline  
Thanks
1 User
Old 11/11/2017, 22:16   #6650
 
elite*gold: 0
Join Date: Apr 2017
Posts: 109
Received Thanks: 9
Quote:
Originally Posted by LamiaCore View Post
@
You should check your functions for missing 'then' and 'end'

function buff_player()

local playerGold = get_value('gold')

if playerGold >= 1000000 then

sv('playerGold', 'playerGold' - 1000000)

add_state(1013, 18, 900000)
buff_select_player()
else
dlg_text("Подзаработай сначала!")
dlg_menu("Пока", "")
dlg_show()
end
end
what a shame for me! ( its because im not accustomed to lua syntax ^^)


Thank you so much!!!
YuhaBah is offline  
Old 11/11/2017, 22:22   #6651
 
InkDevil's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 594
Received Thanks: 1,188
Quote:
Originally Posted by YuhaBah View Post
what a shame for me! ( its because im not accustomed to lua syntax ^^)


Thank you so much!!!
Changed/added a few more things/comments.
InkDevil is offline  
Thanks
1 User
Old 11/11/2017, 22:32   #6652
 
elite*gold: 0
Join Date: Apr 2017
Posts: 109
Received Thanks: 9
Quote:
Originally Posted by LamiaCore View Post
Changed/added a few more things/comments.
Okay. But what about other function in lua? i saw, that func like 'open_market()' use with '
YuhaBah is offline  
Old 11/11/2017, 22:39   #6653
 
InkDevil's Avatar
 
elite*gold: 0
Join Date: Sep 2015
Posts: 594
Received Thanks: 1,188
Quote:
Originally Posted by YuhaBah View Post
Okay. But what about other function in lua? i saw, that func like 'open_market()' use with '
Depending on the function which should call another function.
But definitely not for variables.
InkDevil is offline  
Thanks
1 User
Old 11/12/2017, 01:57   #6654
Moderator


 
ThunderNikk's Avatar
 
elite*gold: 1
Join Date: Dec 2012
Posts: 4,779
Received Thanks: 1,461
I went to the movies to see "IT" thanks for helping out LamiaCore.

I am not that well versed in .lua either, I use existing code to learn how to make my new code.

Takes me a bit.
ThunderNikk is offline  
Thanks
1 User
Old 11/12/2017, 02:42   #6655
 
elite*gold: 0
Join Date: Oct 2017
Posts: 6
Received Thanks: 0
Hi all

I want to open Rappelz without the GG
Because of a problem Game Hack
I use Client 7.3 Arabic version
I can not find SFrame 7.3 for Arabic version without GG

Can anyone help me

Thanks in advance
RashedGM is offline  
Old 11/12/2017, 03:04   #6656




 
Ghost Informatics's Avatar
 
elite*gold: 6190
Join Date: Sep 2014
Posts: 347
Received Thanks: 934
Quote:
Originally Posted by RashedGM View Post
Hi all

I want to open Rappelz without the GG
Because of a problem Game Hack
I use Client 7.3 Arabic version
I can not find SFrame 7.3 for Arabic version without GG

Can anyone help me

Thanks in advance
put the SFrame here that you want to remove GG from!
Ghost Informatics is offline  
Thanks
1 User
Old 11/12/2017, 03:06   #6657
 
elite*gold: 0
Join Date: Oct 2017
Posts: 6
Received Thanks: 0
Hi again
And there is another thing
I Create NPC for buying Pets from Players


function Rashed_Creature_Sale1()

local item_count = find_item ( 540002 )
local gold = get_value( "gold" )

if item_count >= 1 then
set_value( "gold", gold + 1500000 )
update_gold_chaos()
delete_item( get_item_handle( 540002 ), 1 )

dlg_title( "name" )
dlg_text( "name" )
dlg_menu( "name" , "Rashed_Sale()" )
dlg_menu( "name", '' )
else
dlg_title( "name" )
dlg_text( "name" )
dlg_menu( "name" , "Rashed_Sale()" )
dlg_menu( "name", '' )
return

end
end



Here

The problem is that NPC can not differentiate between
Tamed Pets or not
I want to make it buy empty card ( not Tamed )


I really want this help

Thanks again
RashedGM is offline  
Old 11/12/2017, 03:17   #6658
 
elite*gold: 0
Join Date: Oct 2017
Posts: 6
Received Thanks: 0
Quote:
Originally Posted by Ghost Informatics View Post
put the SFrame here that you want to remove GG from!
Here
Attached Files
File Type: rar SFrame.rar (3.42 MB, 12 views)
RashedGM is offline  
Old 11/12/2017, 09:13   #6659
 
elite*gold: 0
Join Date: Apr 2017
Posts: 109
Received Thanks: 9
Quote:
Originally Posted by RashedGM View Post
Hi again
And there is another thing
I Create NPC for buying Pets from Players

Here

The problem is that NPC can not differentiate between
Tamed Pets or not
I want to make it buy empty card ( not Tamed )


I really want this help

Thanks again
As i know, in the oficial server same thing, that tamet card = empty card for NPC.
YuhaBah is offline  
Old 11/12/2017, 10:17   #6660
 
elite*gold: 0
Join Date: Oct 2017
Posts: 6
Received Thanks: 0
Quote:
Originally Posted by YuhaBah View Post
As i know, in the oficial server same thing, that tamet card = empty card for NPC.
But it has something to do with

local q_flag0 = tonumber( get_flag( "q20" ) )

if q_flag0 == nil then
q_flag0 = 0
set_flag( "q20", "0" )
end

or

local local_flag = get_env( "game.local_flag" )
if local_flag == 1
set_flag( "lvup_weapon", "1")


But I do not know what it is
I tried a lot and did not solve it
And so I asked you here
Ty
RashedGM is offline  
Reply

Tags
7.4, client, rappelz


Similar Threads Similar Threads
[Helping Topic] 24/7 Helping Services!
08/27/2008 - EO PServer Hosting - 31 Replies
stucked on anything while setuping your server? post your problem here and you will get answer as fast as possible better than spamming with posts :cool: first of all try reading Ahmedpotop's Pserver All thing guide. if your couldn't solve it out post your problem down here ""That includes PHP rankings pages / registrations pages / Status pages""



All times are GMT +2. The time now is 03:03.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.