Raised This Month: $51 Target: $400
 12% 

Sven Cooperative Experience Mod [Current Version: 17.0]


Post New Thread Reply   
 
Thread Tools Display Modes
pewito
New Member
Join Date: Sep 2011
Old 09-14-2011 , 18:06   Re: Sven Cooperative Experience Mod [Current Version: 17.0]
Reply With Quote #871

Hi wanted to know if there's any way to save the experience of each player, because when a player leaves and re-entry begins with 0. I have seen that the command to save what you have taken that resulted in an error.
pewito is offline
XINLEI
me too
Join Date: Jun 2011
Location: Colombian Coffee storage
Old 09-14-2011 , 19:12   Re: Sven Cooperative Experience Mod [Current Version: 17.0]
Reply With Quote #872

Quote:
Originally Posted by pewito View Post
Hi wanted to know if there's any way to save the experience of each player, because when a player leaves and re-entry begins with 0. I have seen that the command to save what you have taken that resulted in an error.
there's Cvars for it.
XINLEI is offline
pewito
New Member
Join Date: Sep 2011
Old 09-15-2011 , 04:55   Re: Sven Cooperative Experience Mod [Current Version: 17.0]
Reply With Quote #873

Quote:
Originally Posted by XINLEI View Post
there's Cvars for it.
Thank you for responding, I've been watching the cvars from this list:

http://elxdraco.net/scripting/cvarlist/

But that will not find the variable to be introduced in order to save the data ... U_U
pewito is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 09-15-2011 , 11:50   Re: Sven Cooperative Experience Mod [Current Version: 17.0]
Reply With Quote #874

Quote:
Originally Posted by pewito View Post
Thank you for responding, I've been watching the cvars from this list:

http://elxdraco.net/scripting/cvarlist/

But that will not find the variable to be introduced in order to save the data ... U_U
This is a generic list of cvars, and will not include cvars from custom plugins.

Quote:
Originally Posted by XINLEI View Post
there's Cvars for it.

According to the latest update that is on the code, the plugin is supposed to auto save xp.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Old 09-17-2011, 09:04
Warchild
This message has been deleted by Warchild.
Warchild
Junior Member
Join Date: Aug 2008
Location: Deutschland / NRW / Hage
Old 10-02-2011 , 13:50   Re: Sven Cooperative Experience Mod [Current Version: 17.0]
Reply With Quote #875

oh no i found a new bug teampower don't work i found the teampower code but i dont know what is to fix . Here the code at line 1871-1937

Silencer123 ,Wrd and Lulu the hero I hope you can help me we can even test it on my server

PHP Code:
if(dist[i]>0)
                {
                    for(new 
h=0;h<iNum;h++)
                    {
                        new 
id=iPlayers[h]
                        for(new 
j=0;j<iNum;j++)
                        {
                            new 
i=iPlayers[j]
                            if(
id==i)
                            {
                                
// Do nothing
                            
}
                            else
                            {
                                if(
is_user_alive(i)&&is_user_alive(id))
                                {
                                    new 
Float:origin_i[3]
                                    
pev(i,pev_origin,origin_i)
                                    new 
Float:origin_id[3]
                                    
pev(id,pev_origin,origin_id)
                                    if(
get_distance_f(origin_i,origin_id)<=650.0)
                                    {
                                        new 
halfspeed=floatround(float(speed[i])/2.0)
                                        new 
iPlayers[32],iNum
                                        get_players
(iPlayers,iNum)
                                        
iNum=iNum*50
                                        
new luck=random_num(1651-iNum,4200+dist[id]+dist[i]+halfspeed)
                                        if(
luck>4200)
                                        {
                                            
set_user_health(i,get_user_health(i)+1)
                                            if(
get_user_health(i)>health[i]+starthealth+60+dist[id]+medals[i]+halfspeed)
                                            {
                                                
set_user_health(i,health[i]+starthealth+60+dist[id]+medals[i]+halfspeed)
                                            }
                                        }
                                        
luck=random_num(1651-iNum,4200+dist[id]+dist[i]+halfspeed)
                                        if(
luck>4200)
                                        {
                                            
set_user_armor(i,get_user_armor(i)+1)
                                            if(
get_user_armor(i)>health[i]+starthealth+60+dist[id]+medals[i]+halfspeed)
                                            {
                                                
set_user_armor(i,health[i]+starthealth+60+dist[id]+medals[i]+halfspeed)
                                            }
                                        }
                                        if(
dist[id]>=40)
                                        {
                                            
luck=random_num(0,1000+dist[id])
                                            if(
luck>1038)
                                            {
                                                
set_user_health(i,get_user_health(i)+1)
                                                if(
get_user_health(i)>health[i]+starthealth+60+dist[id]+medals[i]+halfspeed)
                                                {
                                                    
set_user_health(i,health[i]+starthealth+60+dist[id]+medals[i]+halfspeed)
                                                }
                                                
set_user_armor(i,get_user_armor(i)+1)
                                                if(
get_user_armor(i)>health[i]+starthealth+60+dist[id]+medals[i]+halfspeed)
                                                {
                                                    
set_user_armor(i,health[i]+starthealth+60+dist[id]+medals[i]+halfspeed)
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                } 
Block Attak Don't worke too

PHP Code:
if(!is_player_flag_set(has_godmodei))
                {
                    if(
dodge[i]>0)
                    {
                        new 
piecespeed=floatround(float(speed[i])/7.0)
                        new 
luck=random_num(0,185+dodge[i]+medals[i]+piecespeed)
                        if(
luck>185)
                        {
                            
set_user_godmode(i,1)
                        }
                        else
                        {
                            
set_user_godmode(i)
                        }
                    }
                    else
                    {
                        
set_user_godmode(i)
                    }
                } 
but when i change

PHP Code:
new luck=random_num(0,185+dodge[i]+medals[i]+piecespeed
to

PHP Code:
new luck=random_num(80,185+dodge[i]+medals[i]+piecespeed
will worke i think but don't know

I found the failing code
PHP Code:
{
// Do nothing 
}
else 
I have remove it and teampower will working now
but teampower gives only me hp and ap teammates become no hp and ap. I don't know how to fix that bug

new code at line 1885-1947

PHP Code:
if(dist[i]>=0)
                {
                    for(new 
h=0;h<iNum;h++)
                    {
                        new 
id=iPlayers[h]
                        for(new 
j=0;j<iNum;j++)
                        {
                            new 
i=iPlayers[j]
                            if(
id==i)
                            {
                                if(
is_user_alive(i)&&is_user_alive(id))
                                {
                                    new 
Float:origin_i[3]
                                    
pev(i,pev_origin,origin_i)
                                    new 
Float:origin_id[3]
                                    
pev(id,pev_origin,origin_id)
                                    if(
get_distance_f(origin_i,origin_id)<=650.0)
                                    {
                                        new 
halfspeed=floatround(float(speed[i])/1.0)
                                        new 
iPlayers[32],iNum
                                        get_players
(iPlayers,iNum)
                                        
iNum=iNum*50
                                        
new luck=random_num(1651-iNum,2000+dist[id]+dist[i]+halfspeed)
                                        if(
luck>2000)
                                        {
                                            
set_user_health(i,get_user_health(i)+1)
                                            if(
get_user_health(i)>health[i]+starthealth+100+dist[id]+medals[i]+halfspeed)
                                            {
                                                
set_user_health(i,health[i]+starthealth+100+dist[id]+medals[i]+halfspeed)
                                            }
                                        }
                                        
luck=random_num(1651-iNum,2000+dist[id]+dist[i]+halfspeed)
                                        if(
luck>2000)
                                        {
                                            
set_user_armor(i,get_user_armor(i)+1)
                                            if(
get_user_armor(i)>armor[i]+startarmor+100+dist[id]+medals[i]+halfspeed)
                                            {
                                                
set_user_armor(i,armor[i]+startarmor+100+dist[id]+medals[i]+halfspeed)
                                            }
                                        }
                                        if(
dist[id]>=40)
                                        {
                                            
luck=random_num(1000,1000+dist[id])
                                            if(
luck>1000)
                                            {
                                                
set_user_health(i,get_user_health(i)+1)
                                                if(
get_user_health(i)>health[i]+starthealth+100+dist[id]+medals[i]+halfspeed)
                                                {
                                                    
set_user_health(i,health[i]+starthealth+100+dist[id]+medals[i]+halfspeed)
                                                }
                                                
set_user_armor(i,get_user_armor(i)+1)
                                                if(
get_user_armor(i)>armor[i]+startarmor+100+dist[id]+medals[i]+halfspeed)
                                                {
                                                    
set_user_armor(i,armor[i]+startarmor+100+dist[id]+medals[i]+halfspeed)
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                } 
* Changelog
*
* Version: 17.31.3
* Date: 4 October 2011
* ------------------------
* Bug Teampower give no hp and ap to Teammates
* Fixed Remove wrong code ({// Do nothing} else ) to fix teampower
* Edited Teampower Speed from 2.0 to 1.0
* Edited Teampower +60 hp and ap too +100 hp and ap
* Edited Teampower luck from 4200 to 2000
* Edited Teampower luck by 40 skill points from 0,1000 to 1000,1000
* Edited Block Attack luck from 0,185 to 80,185 to fix it but dont know if it works
* Edited Medikit Heal speed from slow to fast
* ------------------------
*
* Version: 17.31.2
* Date: 2 October 2011
* ------------------------
* Fixed Changed new starthealth; and new startarmor; in new starthealth=100; and new startarmor=100;to fix the bug by join the game hp still by 100 hp.
* Fixed scxpm_regen and I fixed the backward hp problem when you have over 100 hp
* Edited armor regeneration
* Edited scxpm_randomammo
* Edited give stuff (ammo regeneration ,ammo packs)
* Edited scxpm_xpgain from 1.0 to 10.0
* Edited scxpm_save_frequent from 0 to 1
* ------------------------
Attached Files
File Type: inc bit.inc (3.1 KB, 445 views)
File Type: sma Get Plugin or Get Source (scxpm_wrd.sma - 801 views - 80.1 KB)

Last edited by Warchild; 01-23-2016 at 16:16.
Warchild is offline
Send a message via ICQ to Warchild Send a message via MSN to Warchild
Scroxx
Junior Member
Join Date: Oct 2010
Old 01-14-2012 , 13:55   Re: Sven Cooperative Experience Mod [Current Version: 17.0]
Reply With Quote #876

This Version does support SQL?

If not, can u add Support for SQL?
Scroxx is offline
XINLEI
me too
Join Date: Jun 2011
Location: Colombian Coffee storage
Old 01-14-2012 , 15:04   Re: Sven Cooperative Experience Mod [Current Version: 17.0]
Reply With Quote #877

Quote:
Originally Posted by Scroxx View Post
This Version does support SQL?
Yes.
XINLEI is offline
R4to0.exe
Member
Join Date: Sep 2008
Location: Sao Paulo,Brazil
Old 01-30-2012 , 11:55   Re: Sven Cooperative Experience Mod [Current Version: 17.0]
Reply With Quote #878

I'd like to see multilingual feature on this plugin, so can someone add?
R4to0.exe is offline
Send a message via MSN to R4to0.exe Send a message via Skype™ to R4to0.exe
anthony_g4i
Member
Join Date: Feb 2009
Old 02-10-2012 , 21:42   Re: Sven Cooperative Experience Mod [Current Version: 17.0]
Reply With Quote #879

Is work with other mods ,,,,,,,,,,,,,,, ??????? (Vampire Slayer ?, Counter Strike ? ,etc )

Last edited by anthony_g4i; 02-10-2012 at 21:43.
anthony_g4i is offline
R4to0.exe
Member
Join Date: Sep 2008
Location: Sao Paulo,Brazil
Old 02-13-2012 , 22:28   Re: Sven Cooperative Experience Mod [Current Version: 17.0]
Reply With Quote #880

Quote:
Originally Posted by anthony_g4i View Post
Is work with other mods ,,,,,,,,,,,,,,, ??????? (Vampire Slayer ?, Counter Strike ? ,etc )
Works on CS, just uncomment "#define USING_CS" and compile, but not on Vampire Slayer (it needs code i think).
R4to0.exe is offline
Send a message via MSN to R4to0.exe Send a message via Skype™ to R4to0.exe
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode